summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries')
-rw-r--r--Libraries/LibWeb/DOM/HTMLImageElement.cpp12
-rw-r--r--Libraries/LibWeb/DOM/HTMLImageElement.h2
2 files changed, 0 insertions, 14 deletions
diff --git a/Libraries/LibWeb/DOM/HTMLImageElement.cpp b/Libraries/LibWeb/DOM/HTMLImageElement.cpp
index e21c66c3fa..096af7a834 100644
--- a/Libraries/LibWeb/DOM/HTMLImageElement.cpp
+++ b/Libraries/LibWeb/DOM/HTMLImageElement.cpp
@@ -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);
diff --git a/Libraries/LibWeb/DOM/HTMLImageElement.h b/Libraries/LibWeb/DOM/HTMLImageElement.h
index 6d0434ba52..6eae9d4874 100644
--- a/Libraries/LibWeb/DOM/HTMLImageElement.h
+++ b/Libraries/LibWeb/DOM/HTMLImageElement.h
@@ -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;