mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 18:47:34 +00:00
LibWeb: Clear SVG context after SVGSVGBox children are painted
This commit is contained in:
parent
eb1578e7c8
commit
758d816b23
2 changed files with 2 additions and 0 deletions
|
@ -37,6 +37,7 @@ void SVGSVGBox::after_children_paint(PaintContext& context, PaintPhase phase)
|
|||
SVGGraphicsBox::after_children_paint(context, phase);
|
||||
if (phase != PaintPhase::Foreground)
|
||||
return;
|
||||
context.clear_svg_context();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ public:
|
|||
bool has_svg_context() const { return m_svg_context.has_value(); }
|
||||
SVGContext& svg_context() { return m_svg_context.value(); }
|
||||
void set_svg_context(SVGContext context) { m_svg_context = context; }
|
||||
void clear_svg_context() { m_svg_context.clear(); }
|
||||
|
||||
bool should_show_line_box_borders() const { return m_should_show_line_box_borders; }
|
||||
void set_should_show_line_box_borders(bool value) { m_should_show_line_box_borders = value; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue