diff --git a/gfx/layers/wr/ClipManager.cpp b/gfx/layers/wr/ClipManager.cpp index f3871eb51b24b..28a54b237e5b5 100644 --- a/gfx/layers/wr/ClipManager.cpp +++ b/gfx/layers/wr/ClipManager.cpp @@ -63,7 +63,7 @@ void ClipManager::BeginList(const StackingContextHelper& aStackingContext) { ItemClips clips(nullptr, nullptr, false); if (!mItemClipStack.empty()) { - clips = mItemClipStack.top(); + clips.CopyOutputsFrom(mItemClipStack.top()); } if (aStackingContext.ReferenceFrameId()) { @@ -436,6 +436,11 @@ bool ClipManager::ItemClips::HasSameInputs(const ItemClips& aOther) { mSeparateLeaf == aOther.mSeparateLeaf; } +void ClipManager::ItemClips::CopyOutputsFrom(const ItemClips& aOther) { + mScrollId = aOther.mScrollId; + mClipChainId = aOther.mClipChainId; +} + wr::WrSpaceAndClipChain ClipManager::ItemClips::GetSpaceAndClipChain() const { auto spaceAndClipChain = wr::RootScrollNodeWithChain(); spaceAndClipChain.space = mScrollId; diff --git a/gfx/layers/wr/ClipManager.h b/gfx/layers/wr/ClipManager.h index f82c5b5fe7f95..bb4e5436a24d9 100644 --- a/gfx/layers/wr/ClipManager.h +++ b/gfx/layers/wr/ClipManager.h @@ -133,6 +133,7 @@ class ClipManager { void UpdateSeparateLeaf(wr::DisplayListBuilder& aBuilder, int32_t aAppUnitsPerDevPixel); bool HasSameInputs(const ItemClips& aOther); + void CopyOutputsFrom(const ItemClips& aOther); wr::WrSpaceAndClipChain GetSpaceAndClipChain() const; }; diff --git a/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-001.html b/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-001.html deleted file mode 100644 index 3633872711f81..0000000000000 --- a/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-001.html +++ /dev/null @@ -1,13 +0,0 @@ - - -filter + fixed pos clipping - - - - - - -
-
-
-
diff --git a/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-002-ref.html b/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-002-ref.html deleted file mode 100644 index d281f2a852ed8..0000000000000 --- a/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-002-ref.html +++ /dev/null @@ -1,6 +0,0 @@ - - -CSS Test Reference - diff --git a/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-002.html b/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-002.html deleted file mode 100644 index 196e4c91fc3b6..0000000000000 --- a/testing/web-platform/tests/css/filter-effects/fixed-pos-filter-clip-002.html +++ /dev/null @@ -1,21 +0,0 @@ - - -filter + fixed pos clipping - - - - - - -