LibWeb: Remove unnecessary apply_own_clip_rect() in PaintableWithLines

Own clip rect is alredy applied in `PaintableBox::before_paint()` for
all paintables with lines, so there's no need to do it once again in
`PaintableWithLines::paint()`.
This commit is contained in:
Aliaksandr Kalenik 2025-07-06 22:12:53 +02:00 committed by Tim Ledbetter
parent af79781399
commit 85001185a7
Notes: github-actions[bot] 2025-07-06 20:57:21 +00:00

View file

@ -906,8 +906,6 @@ void PaintableWithLines::paint(PaintContext& context, PaintPhase phase) const
PaintableBox::paint(context, phase);
apply_own_clip_rect(context, phase);
// Text shadows
// This is yet another loop, but done here because all shadows should appear under all text.
// So, we paint the shadows before painting any text.
@ -929,8 +927,6 @@ void PaintableWithLines::paint(PaintContext& context, PaintPhase phase) const
if (is<TextPaintable>(fragment.paintable()))
paint_text_fragment(context, static_cast<TextPaintable const&>(fragment.paintable()), fragment, phase);
}
clear_own_clip_rect(context, phase);
}
Paintable::DispatchEventOfSameName PaintableBox::handle_mousedown(Badge<EventHandler>, CSSPixelPoint position, unsigned, unsigned)