mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:07:45 +00:00
LibWeb: Clean previous border radii clips in refresh_clip_state()
The list of border radii clips needs to be reset before being populated with new clips that have refreshed positions. Besides fixing painting, this also improves performance because the number of sample/blit commands does not increase as we scroll.
This commit is contained in:
parent
91378ded96
commit
c74fc4c171
4 changed files with 67 additions and 0 deletions
|
@ -28,6 +28,7 @@ struct ClipFrame : public RefCounted<ClipFrame> {
|
|||
}
|
||||
m_border_radii_clips.append(border_radii_clip);
|
||||
}
|
||||
void clear_border_radii_clips() { m_border_radii_clips.clear(); }
|
||||
|
||||
CSSPixelRect rect() const { return m_rect; }
|
||||
void set_rect(CSSPixelRect rect) { m_rect = rect; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue