diff options
author | Andreas Kling <kling@serenityos.org> | 2021-06-24 19:53:42 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-06-24 19:57:01 +0200 |
commit | ee3a73ddbb90f6ebab22e099c34e1aae400a81d1 (patch) | |
tree | 57c053e3124f18ee3239fe8dbad831b7708e3ee8 /Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.cpp | |
parent | 6215a9c2cbdfe0c631ed339e5266580d271a3882 (diff) | |
download | serenity-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/SVGGraphicsBox.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.cpp b/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.cpp index c00b28286d..3126330793 100644 --- a/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/SVGGraphicsBox.cpp @@ -19,7 +19,7 @@ void SVGGraphicsBox::before_children_paint(PaintContext& context, PaintPhase pha if (phase != PaintPhase::Foreground) return; - auto& graphics_element = downcast<SVG::SVGGraphicsElement>(dom_node()); + auto& graphics_element = verify_cast<SVG::SVGGraphicsElement>(dom_node()); if (graphics_element.fill_color().has_value()) context.svg_context().set_fill_color(graphics_element.fill_color().value()); |