mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb: Make apply_scroll_offset
and reset_scroll_offset
non-virtual
This commit is contained in:
parent
773d19b406
commit
c0526b085d
Notes:
github-actions[bot]
2025-07-07 16:56:48 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: c0526b085d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5341
Reviewed-by: https://github.com/gmta ✅
5 changed files with 10 additions and 13 deletions
|
@ -31,14 +31,14 @@ void SVGSVGPaintable::before_paint(PaintContext& context, PaintPhase phase) cons
|
|||
if (!has_css_transform()) {
|
||||
apply_clip_overflow_rect(context, phase);
|
||||
}
|
||||
apply_scroll_offset(context, phase);
|
||||
apply_scroll_offset(context);
|
||||
}
|
||||
|
||||
void SVGSVGPaintable::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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue