mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
LibWeb: Define bounding rect for AddMask display list item
This allows display list player to skip masks that would not be visible.
This commit is contained in:
parent
9f4deb57c8
commit
672ff7e45e
Notes:
github-actions[bot]
2024-08-06 20:17:00 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 672ff7e45e
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/995
1 changed files with 2 additions and 0 deletions
|
@ -353,6 +353,8 @@ struct AddMask {
|
||||||
RefPtr<DisplayList> display_list;
|
RefPtr<DisplayList> display_list;
|
||||||
Gfx::IntRect rect;
|
Gfx::IntRect rect;
|
||||||
|
|
||||||
|
[[nodiscard]] Gfx::IntRect bounding_rect() const { return rect; }
|
||||||
|
|
||||||
void translate_by(Gfx::IntPoint const& offset)
|
void translate_by(Gfx::IntPoint const& offset)
|
||||||
{
|
{
|
||||||
rect.translate_by(offset);
|
rect.translate_by(offset);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue