Skip to content

Add ServoRestyleDamage::RECALCULATE_OVERFLOW#194

Merged
Loirooriol merged 1 commit intoservo:mainfrom
Loirooriol:recalculate-overflow
May 30, 2025
Merged

Add ServoRestyleDamage::RECALCULATE_OVERFLOW#194
Loirooriol merged 1 commit intoservo:mainfrom
Loirooriol:recalculate-overflow

Conversation

@Loirooriol
Copy link
Copy Markdown
Collaborator

@Loirooriol Loirooriol commented May 30, 2025

This restyle damage will be used for properties that affect overflow but not layout, like transform.

The flag isn't currently used yet, that will happen in a follow-up.

Servo PR: servo/servo#37203

This restyle damage will be used for properties that affect overflow but
not layout, like `transform`.

The flag isn't currenlty used yet, that will happen in a follow-up.

Signed-off-by: Oriol Brufau <[email protected]>
Co-authored-by: Martin Robinson <[email protected]>
@Loirooriol Loirooriol marked this pull request as ready for review May 30, 2025 18:26
@Loirooriol Loirooriol added this pull request to the merge queue May 30, 2025
Merged via the queue into servo:main with commit 945b70e May 30, 2025
3 checks passed
@Loirooriol Loirooriol deleted the recalculate-overflow branch May 30, 2025 18:33
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request May 30, 2025
…37203)

Instead of computing scrollable overflow while constructing the fragment
tree, we will now do it later. In the future this will also allow to
only recalculate the overflow without rebuilding the tree when transform
properties change, but that's left for a follow-up.

Stylo PR: servo/stylo#194

Testing: One test is now passing (more investigation is needed), but
otherwise this isn't expected to have any effect.

Signed-off-by: Oriol Brufau <[email protected]>
Co-authored-by: Martin Robinson <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants