mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibWeb: Move StackingContext and PaintPhase into the Painting namespace
This commit is contained in:
parent
a4d51b3dc2
commit
f0d833a3d7
41 changed files with 105 additions and 103 deletions
|
@ -14,9 +14,9 @@ SVGSVGBox::SVGSVGBox(DOM::Document& document, SVG::SVGSVGElement& element, Nonnu
|
|||
{
|
||||
}
|
||||
|
||||
void SVGSVGBox::before_children_paint(PaintContext& context, PaintPhase phase)
|
||||
void SVGSVGBox::before_children_paint(PaintContext& context, Painting::PaintPhase phase)
|
||||
{
|
||||
if (phase != PaintPhase::Foreground)
|
||||
if (phase != Painting::PaintPhase::Foreground)
|
||||
return;
|
||||
|
||||
if (!context.has_svg_context())
|
||||
|
@ -25,10 +25,10 @@ void SVGSVGBox::before_children_paint(PaintContext& context, PaintPhase phase)
|
|||
SVGGraphicsBox::before_children_paint(context, phase);
|
||||
}
|
||||
|
||||
void SVGSVGBox::after_children_paint(PaintContext& context, PaintPhase phase)
|
||||
void SVGSVGBox::after_children_paint(PaintContext& context, Painting::PaintPhase phase)
|
||||
{
|
||||
SVGGraphicsBox::after_children_paint(context, phase);
|
||||
if (phase != PaintPhase::Foreground)
|
||||
if (phase != Painting::PaintPhase::Foreground)
|
||||
return;
|
||||
context.clear_svg_context();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue