[WIP] Remove explicit clip ID from stacking context #3311
Closed
+56
−50
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is one of the preparatory changes towards #3251
With this in, we should be able to remove this (hacky) code path in Gecko:
https://searchfox.org/mozilla-central/rev/d850d799a0009f851b5535580e0a8b4bb2c591d7/gfx/layers/wr/ClipManager.cpp#224
Currently, we provide a clip ID explicitly when pushing a stacking context. This change makes us use the clip ID on the clip/scroll stack instead, like with every other item. The implementation comes with a few quirks, namely the introduction of "push_clip_id_override" and "push_scroll_id_override" into the API. These aren't conflicting with #3251 and will be removed by it (together with the whole clip/scroll stack).
WIP because: still working on the Gecko side
This change is