mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 822086 - Handle a nullptr ContainerLayer in nsDisplayTransform::BuildLayer. r=bustage CLOSED TREE
This commit is contained in:
parent
0b39e48388
commit
66180dc4c1
@ -4019,6 +4019,10 @@ already_AddRefed<Layer> nsDisplayTransform::BuildLayer(nsDisplayListBuilder *aBu
|
|||||||
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, *mStoredList.GetChildren(),
|
BuildContainerLayerFor(aBuilder, aManager, mFrame, this, *mStoredList.GetChildren(),
|
||||||
aContainerParameters, &newTransformMatrix);
|
aContainerParameters, &newTransformMatrix);
|
||||||
|
|
||||||
|
if (!container) {
|
||||||
|
return nullptr;
|
||||||
|
}
|
||||||
|
|
||||||
// Add the preserve-3d flag for this layer, BuildContainerLayerFor clears all flags,
|
// Add the preserve-3d flag for this layer, BuildContainerLayerFor clears all flags,
|
||||||
// so we never need to explicitely unset this flag.
|
// so we never need to explicitely unset this flag.
|
||||||
if (mFrame->Preserves3D() || mFrame->Preserves3DChildren()) {
|
if (mFrame->Preserves3D() || mFrame->Preserves3DChildren()) {
|
||||||
|
Loading…
Reference in New Issue
Block a user