From 96db154580c2be79c1feb27cacc16395ede6eaa4 Mon Sep 17 00:00:00 2001 From: "longsonr%gmail.com" Date: Tue, 22 Jan 2008 15:22:58 +0000 Subject: [PATCH] Bug 413016 - ASSERTION: SVG frame expected with svg:after in SVG document. r+sr=bzbarsky,a1.9=mtschrep git-svn-id: svn://10.0.0.236/trunk@243728 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsCSSFrameConstructor.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsCSSFrameConstructor.cpp b/mozilla/layout/base/nsCSSFrameConstructor.cpp index 862762e7953..30235242c2f 100644 --- a/mozilla/layout/base/nsCSSFrameConstructor.cpp +++ b/mozilla/layout/base/nsCSSFrameConstructor.cpp @@ -4358,6 +4358,7 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsFrameConstructorState& aState, #endif nsIFrame* contentFrame = nsnull; + PRBool canHaveGeneratedContent = PR_TRUE; PRBool isBlockFrame = PR_FALSE; nsresult rv; @@ -4390,6 +4391,7 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsFrameConstructorState& aState, if (aDocElement->GetNameSpaceID() == kNameSpaceID_SVG) { if (aDocElement->Tag() == nsGkAtoms::svg && NS_SVGEnabled()) { contentFrame = NS_NewSVGOuterSVGFrame(mPresShell, aDocElement, styleContext); + canHaveGeneratedContent = PR_FALSE; } else { return NS_ERROR_FAILURE; } @@ -4440,8 +4442,8 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsFrameConstructorState& aState, // never constructed before the popupset. CreateAnonymousFrames(nsnull, aState, aDocElement, contentFrame, PR_FALSE, childItems, PR_TRUE); - ProcessChildren(aState, aDocElement, contentFrame, PR_TRUE, childItems, - isBlockFrame); + ProcessChildren(aState, aDocElement, contentFrame, canHaveGeneratedContent, + childItems, isBlockFrame); // Set the initial child lists contentFrame->SetInitialChildList(nsnull, childItems.childList);