LibWeb: Remove a superfluous verify_cast on SVGGraphicsPaintable

Since the layout_box of a SVGGraphicsPaintable is already casted to the
right type, the underlying dom_node was also always of the right type.
This triggers a warning on Lagom builds.
This commit is contained in:
DexesTTP 2022-04-03 00:50:38 +02:00 committed by Linus Groh
parent 1af7bfb3a6
commit 530aa51816

View file

@ -25,7 +25,7 @@ void SVGGraphicsPaintable::before_children_paint(PaintContext& context, PaintPha
if (phase != PaintPhase::Foreground)
return;
auto& graphics_element = verify_cast<SVG::SVGGraphicsElement>(layout_box().dom_node());
auto& graphics_element = layout_box().dom_node();
if (graphics_element.fill_color().has_value())
context.svg_context().set_fill_color(graphics_element.fill_color().value());