From 4045401956770ae548637fae203ac70222a3bdb2 Mon Sep 17 00:00:00 2001 From: Matt Woodrow Date: Tue, 4 Oct 2011 14:23:04 +1300 Subject: [PATCH] Bug 691431 - Remove invalid assertion and NULL check childFrame in WrapPreserve3DList. r=roc --- layout/generic/nsFrame.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/layout/generic/nsFrame.cpp b/layout/generic/nsFrame.cpp index 715c9c91581..83c9d586f58 100644 --- a/layout/generic/nsFrame.cpp +++ b/layout/generic/nsFrame.cpp @@ -1529,13 +1529,12 @@ WrapPreserve3DListInternal(nsIFrame* aFrame, nsDisplayListBuilder *aBuilder, nsD nsDisplayList temp; while (nsDisplayItem *item = aList->RemoveBottom()) { nsIFrame *childFrame = item->GetUnderlyingFrame(); - NS_ASSERTION(childFrame, "All display items to be wrapped must have a frame!"); // We accumulate sequential items that aren't transforms into the 'temp' list // and then flush this list into newList by wrapping the whole lot with a single // nsDisplayTransform. - if (childFrame->GetParent()->Preserves3DChildren()) { + if (childFrame && childFrame->GetParent()->Preserves3DChildren()) { switch (item->GetType()) { case nsDisplayItem::TYPE_TRANSFORM: { if (!temp.IsEmpty()) {