summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML/Layout/LayoutImage.h
diff options
context:
space:
mode:
Diffstat (limited to 'Libraries/LibHTML/Layout/LayoutImage.h')
-rw-r--r--Libraries/LibHTML/Layout/LayoutImage.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/Libraries/LibHTML/Layout/LayoutImage.h b/Libraries/LibHTML/Layout/LayoutImage.h
index 344797769c..5fcf62ca55 100644
--- a/Libraries/LibHTML/Layout/LayoutImage.h
+++ b/Libraries/LibHTML/Layout/LayoutImage.h
@@ -19,4 +19,11 @@ public:
private:
virtual const char* class_name() const override { return "LayoutImage"; }
+ virtual bool is_image() const override { return true; }
};
+
+template<>
+inline bool is<LayoutImage>(const LayoutNode& node)
+{
+ return node.is_image();
+}