diff options
Diffstat (limited to 'layout')
-rw-r--r-- | layout/base/nsCSSFrameConstructor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 866fa148bf..bee9ed6299 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -8296,6 +8296,7 @@ nsCSSFrameConstructor::ContentRemoved(nsIContent* aContainer, "display:contents nodes shouldn't have a frame"); if (!childFrame && GetDisplayContentsStyleFor(aChild)) { nsIContent* ancestor = aContainer; + MOZ_ASSERT(ancestor, "display: contents on the root?"); while (!ancestor->GetPrimaryFrame()) { // FIXME(emilio): Should this use the flattened tree parent instead? ancestor = ancestor->GetParent(); |