mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Remove some unused functions from HTMLImageElement
This commit is contained in:
parent
c7d9229a0f
commit
ec39f419e5
Notes:
sideshowbarker
2024-07-19 05:38:56 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/ec39f419e5a
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
Reference in a new issue