mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 03:57:15 +02:00
LibWeb: Remove some unused functions from HTMLImageElement
This commit is contained in:
Notes:
sideshowbarker
2024-07-19 05:38:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ec39f419e5a
@@ -95,18 +95,6 @@ void HTMLImageElement::animate()
|
||||
layout_node()->set_needs_display();
|
||||
}
|
||||
|
||||
#if 0
|
||||
int HTMLImageElement::preferred_width() const
|
||||
{
|
||||
return attribute(HTML::AttributeNames::width).to_int().value_or(m_image_decoder ? m_image_decoder->width() : 0);
|
||||
}
|
||||
|
||||
int HTMLImageElement::preferred_height() const
|
||||
{
|
||||
return attribute(HTML::AttributeNames::height).to_int().value_or(m_image_decoder ? m_image_decoder->height() : 0);
|
||||
}
|
||||
#endif
|
||||
|
||||
RefPtr<LayoutNode> HTMLImageElement::create_layout_node(const StyleProperties* parent_style) const
|
||||
{
|
||||
auto style = document().style_resolver().resolve_style(*this, parent_style);
|
||||
|
||||
Reference in New Issue
Block a user