mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 852489. Part 5: Don't temporarily reset clip rect when reusing an existing layer. r=mattwodrow
--HG-- extra : rebase_source : 65ace15a404e25e14c02e514077997554d36f092
This commit is contained in:
parent
361f43cd8a
commit
88994b7bd5
@ -2179,7 +2179,9 @@ ContainerState::ProcessDisplayItems(const nsDisplayList& aList,
|
||||
if (aClip.mHaveClipRect) {
|
||||
nsIntRect clip = ScaleToNearestPixels(aClip.NonRoundedIntersection());
|
||||
clip.MoveBy(mParameters.mOffset);
|
||||
ownLayer->IntersectClipRect(clip);
|
||||
ownLayer->SetClipRect(&clip);
|
||||
} else {
|
||||
ownLayer->SetClipRect(nullptr);
|
||||
}
|
||||
ThebesLayerData* data = GetTopThebesLayerData();
|
||||
if (data) {
|
||||
@ -2884,8 +2886,6 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
||||
NS_ASSERTION(oldLayer->GetType() == Layer::TYPE_CONTAINER,
|
||||
"Wrong layer type");
|
||||
containerLayer = static_cast<ContainerLayer*>(oldLayer);
|
||||
// Clear clip rect; the caller will set it if necessary.
|
||||
containerLayer->SetClipRect(nullptr);
|
||||
containerLayer->SetMaskLayer(nullptr);
|
||||
}
|
||||
}
|
||||
@ -3012,8 +3012,6 @@ FrameLayerBuilder::GetLeafLayerFor(nsDisplayListBuilder* aBuilder,
|
||||
// layer rendering.
|
||||
return nullptr;
|
||||
}
|
||||
// Clear clip rect; the caller is responsible for setting it.
|
||||
layer->SetClipRect(nullptr);
|
||||
layer->SetMaskLayer(nullptr);
|
||||
return layer;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user