mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 05:28:11 +00:00
LibWeb: Remove some unused functions from HTMLImageElement
This commit is contained in:
parent
c7d9229a0f
commit
ec39f419e5
2 changed files with 0 additions and 14 deletions
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue