mirror of
https://github.com/SerenityOS/serenity
synced 2024-09-06 17:06:31 +00:00
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:
parent
1af7bfb3a6
commit
530aa51816
|
@ -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());
|
||||
|
|
Loading…
Reference in a new issue