mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 09:37:45 +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
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ void SVGGraphicsPaintable::before_children_paint(PaintContext& context, PaintPha
|
||||||
if (phase != PaintPhase::Foreground)
|
if (phase != PaintPhase::Foreground)
|
||||||
return;
|
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())
|
if (graphics_element.fill_color().has_value())
|
||||||
context.svg_context().set_fill_color(graphics_element.fill_color().value());
|
context.svg_context().set_fill_color(graphics_element.fill_color().value());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue