summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Layout/SVGSVGBox.h
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-24 19:53:42 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-24 19:57:01 +0200
commitee3a73ddbb90f6ebab22e099c34e1aae400a81d1 (patch)
tree57c053e3124f18ee3239fe8dbad831b7708e3ee8 /Userland/Libraries/LibWeb/Layout/SVGSVGBox.h
parent6215a9c2cbdfe0c631ed339e5266580d271a3882 (diff)
downloadserenity-ee3a73ddbb90f6ebab22e099c34e1aae400a81d1.zip
AK: Rename downcast<T> => verify_cast<T>
This makes it much clearer what this cast actually does: it will VERIFY that the thing we're casting is a T (using is<T>()).
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/SVGSVGBox.h')
-rw-r--r--Userland/Libraries/LibWeb/Layout/SVGSVGBox.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/SVGSVGBox.h b/Userland/Libraries/LibWeb/Layout/SVGSVGBox.h
index ad4cbdafdd..241a7d3405 100644
--- a/Userland/Libraries/LibWeb/Layout/SVGSVGBox.h
+++ b/Userland/Libraries/LibWeb/Layout/SVGSVGBox.h
@@ -16,7 +16,7 @@ public:
SVGSVGBox(DOM::Document&, SVG::SVGSVGElement&, NonnullRefPtr<CSS::StyleProperties>);
virtual ~SVGSVGBox() override = default;
- SVG::SVGSVGElement& dom_node() { return downcast<SVG::SVGSVGElement>(SVGGraphicsBox::dom_node()); }
+ SVG::SVGSVGElement& dom_node() { return verify_cast<SVG::SVGSVGElement>(SVGGraphicsBox::dom_node()); }
virtual void prepare_for_replaced_layout() override;