LibWeb: Make apply_scroll_offset and reset_scroll_offset non-virtual

This commit is contained in:
Aliaksandr Kalenik 2025-07-07 18:39:05 +02:00 committed by Jelle Raaijmakers
commit c0526b085d
Notes: github-actions[bot] 2025-07-07 16:56:48 +00:00
5 changed files with 10 additions and 13 deletions

View file

@ -24,14 +24,14 @@ void SVGPaintable::before_paint(PaintContext& context, PaintPhase phase) const
if (!has_css_transform()) {
apply_clip_overflow_rect(context, phase);
}
apply_scroll_offset(context, phase);
apply_scroll_offset(context);
}
void SVGPaintable::after_paint(PaintContext& context, PaintPhase phase) const
{
if (!is_visible())
return;
reset_scroll_offset(context, phase);
reset_scroll_offset(context);
if (!has_css_transform()) {
clear_clip_overflow_rect(context, phase);
}