Bug 822086 - Handle a nullptr ContainerLayer in nsDisplayTransform::BuildLayer. r=bustage CLOSED TREE

This commit is contained in:
Matt Woodrow 2013-03-21 16:27:02 +13:00
parent 0b39e48388
commit 66180dc4c1

View File

@ -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()) {