Bug 1777395 - Remove legacy clip-parenting in wrench r=gfx-reviewers,lsalzman

This removes the last piece of code in wrench and gecko (there is
one more callsite in WR itself) that relies on the legacy clip
parenting code.

Differential Revision: https://phabricator.services.mozilla.com/D150694
This commit is contained in:
Glenn Watson 2022-06-30 20:38:14 +00:00
parent bf414505cd
commit 70b436796a
2 changed files with 6 additions and 1 deletions

View File

@ -39,3 +39,5 @@ pipelines:
bounds: [0, 0, 1887, 239]
type: rect
color: blue
clip-chain: [2, 4]

View File

@ -1894,7 +1894,10 @@ impl YamlFrameReader {
if let Some(clip_rect) = yaml["bounds"].as_rect() {
space_and_clip.clip_id = dl.define_clip_rect(
&space_and_clip,
&SpaceAndClipInfo {
spatial_id: space_and_clip.spatial_id,
clip_id: ClipId::ClipChain(ClipChainId::INVALID),
},
clip_rect,
);
}