summaryrefslogtreecommitdiff
path: root/Libraries
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-14 19:05:36 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-14 19:05:36 +0200
commitec39f419e5ae06d3ed6fc312d6e65b315d626d27 (patch)
tree364e7d368520e824a9aeec1c992ec596f58464ea /Libraries
parentc7d9229a0f1cc880ea8f9b0da772ca72b48094ef (diff)
downloadserenity-ec39f419e5ae06d3ed6fc312d6e65b315d626d27.zip
LibWeb: Remove some unused functions from HTMLImageElement
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;