mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1022612. Part 15.5: Use GetVisibleRectForChildren instead of GetVisibleRect. r=mattwoodrow
--HG-- extra : rebase_source : 67cd76ce64beff29af0a90db76e752585922ddab
This commit is contained in:
parent
9e398baf3b
commit
46fc7f9136
@ -3453,8 +3453,14 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
||||
}
|
||||
|
||||
ContainerLayerParameters scaleParameters;
|
||||
if (!ChooseScaleAndSetTransform(this, aBuilder, aContainerFrame, aChildren.GetVisibleRect(),
|
||||
aTransform, aParameters, containerLayer, state, scaleParameters)) {
|
||||
nsRect bounds = aChildren->GetBounds(aBuilder);
|
||||
nsRect childrenVisible =
|
||||
aContainerItem ? aContainerItem->GetVisibleRectForChildren() :
|
||||
aContainerFrame->GetVisualOverflowRectRelativeToSelf();
|
||||
if (!ChooseScaleAndSetTransform(this, aBuilder, aContainerFrame,
|
||||
bounds.Intersect(childrenVisible),
|
||||
aTransform, aParameters,
|
||||
containerLayer, state, scaleParameters)) {
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
@ -3473,7 +3479,6 @@ FrameLayerBuilder::BuildContainerLayerFor(nsDisplayListBuilder* aBuilder,
|
||||
LayerManagerData* data = static_cast<LayerManagerData*>
|
||||
(aManager->GetUserData(&gLayerManagerUserData));
|
||||
|
||||
nsRect bounds = aChildren->GetBounds(aBuilder);
|
||||
nsIntRect pixBounds;
|
||||
int32_t appUnitsPerDevPixel;
|
||||
uint32_t stateFlags = 0;
|
||||
|
Loading…
Reference in New Issue
Block a user