LibWeb: Remove some unused functions from HTMLImageElement

This commit is contained in:
Andreas Kling 2020-06-14 19:05:36 +02:00
parent c7d9229a0f
commit ec39f419e5
Notes: sideshowbarker 2024-07-19 05:38:56 +09:00
2 changed files with 0 additions and 14 deletions

View file

@ -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);

View file

@ -48,8 +48,6 @@ public:
String alt() const { return attribute(HTML::AttributeNames::alt); }
String src() const { return attribute(HTML::AttributeNames::src); }
int preferred_width() const;
int preferred_height() const;
const Gfx::Bitmap* bitmap() const;
const Gfx::ImageDecoder* image_decoder() const;