summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-02-11 12:27:22 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-11 21:38:27 +0100
commit49fe232bc78caa7900b95f80d6823fee2cc30781 (patch)
tree5c96df539091475b7c41c63ab46922000c73d298 /Userland
parent5f5fe103eb905880e178b005a5482231280efd95 (diff)
downloadserenity-49fe232bc78caa7900b95f80d6823fee2cc30781.zip
LibWeb: Add const versions of SVGBox::dom_node() and friends
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGBox.h1
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.h1
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGPathBox.h1
3 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/SVGBox.h b/Userland/Libraries/LibWeb/Layout/SVGBox.h
index e3aa207df6..ee0aaea8e3 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGBox.h
+++ b/Userland/Libraries/LibWeb/Layout/SVGBox.h
@@ -18,6 +18,7 @@ public:
virtual ~SVGBox() override = default;
SVG::SVGElement& dom_node() { return verify_cast<SVG::SVGElement>(*Box::dom_node()); }
+ SVG::SVGElement const& dom_node() const { return verify_cast<SVG::SVGElement>(*Box::dom_node()); }
virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
virtual void after_children_paint(PaintContext& context, PaintPhase phase) override;
diff --git a/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.h b/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.h
index 205b7443fc..2605cb93cd 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.h
+++ b/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.h
@@ -18,6 +18,7 @@ public:
virtual ~SVGGraphicsBox() override = default;
SVG::SVGGraphicsElement& dom_node() { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); }
+ SVG::SVGGraphicsElement const& dom_node() const { return verify_cast<SVG::SVGGraphicsElement>(SVGBox::dom_node()); }
virtual void before_children_paint(PaintContext& context, PaintPhase phase) override;
};
diff --git a/Userland/Libraries/LibWeb/Layout/SVGPathBox.h b/Userland/Libraries/LibWeb/Layout/SVGPathBox.h
index 54617f6087..9521c4cc03 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGPathBox.h
+++ b/Userland/Libraries/LibWeb/Layout/SVGPathBox.h
@@ -17,6 +17,7 @@ public:
virtual ~SVGPathBox() override = default;
SVG::SVGPathElement& dom_node() { return verify_cast<SVG::SVGPathElement>(SVGGraphicsBox::dom_node()); }
+ SVG::SVGPathElement const& dom_node() const { return verify_cast<SVG::SVGPathElement>(SVGGraphicsBox::dom_node()); }
virtual void paint(PaintContext& context, PaintPhase phase) override;