Skip to content

Commit

Permalink
Backed out changeset 5311508efeba (bug 1661147) as requested by Emili…
Browse files Browse the repository at this point in the history
…o. CLOSED TREE
  • Loading branch information
Butkovits Atila committed Aug 23, 2022
1 parent 6e618ef commit f96c89a
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 41 deletions.
7 changes: 6 additions & 1 deletion gfx/layers/wr/ClipManager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions gfx/layers/wr/ClipManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
};

Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

0 comments on commit f96c89a

Please sign in to comment.