mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 12:20:00 +01:00
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:
parent
af79781399
commit
85001185a7
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user