1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 04:17:35 +00:00

LibWeb: Move StackingContext and PaintPhase into the Painting namespace

This commit is contained in:
Andreas Kling 2022-03-10 02:13:28 +01:00
parent a4d51b3dc2
commit f0d833a3d7
41 changed files with 105 additions and 103 deletions

View file

@ -34,7 +34,7 @@ bool BlockContainer::should_clip_overflow() const
return computed_values().overflow_x() != CSS::Overflow::Visible && computed_values().overflow_y() != CSS::Overflow::Visible;
}
void BlockContainer::paint(PaintContext& context, PaintPhase phase)
void BlockContainer::paint(PaintContext& context, Painting::PaintPhase phase)
{
if (!is_visible())
return;
@ -64,7 +64,7 @@ void BlockContainer::paint(PaintContext& context, PaintPhase phase)
}
// FIXME: Merge this loop with the above somehow..
if (phase == PaintPhase::FocusOutline) {
if (phase == Painting::PaintPhase::FocusOutline) {
for (auto& line_box : m_paint_box->m_line_boxes) {
for (auto& fragment : line_box.fragments()) {
auto* node = fragment.layout_node().dom_node();