diff --git a/layout/base/nsCSSFrameConstructor.cpp b/layout/base/nsCSSFrameConstructor.cpp index 3fe2393fe0f9..e26da9dc0c9b 100644 --- a/layout/base/nsCSSFrameConstructor.cpp +++ b/layout/base/nsCSSFrameConstructor.cpp @@ -1661,6 +1661,8 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresContext* aPresContext, NS_NewAreaFrame(areaFrame, 0); areaFrame->Init(*aPresContext, aDocElement, aParentFrame, styleContext, nsnull); + nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, areaFrame, + styleContext, PR_FALSE); // The area frame is the "initial containing block" mInitialContainingBlock = areaFrame; diff --git a/layout/html/style/src/nsCSSFrameConstructor.cpp b/layout/html/style/src/nsCSSFrameConstructor.cpp index 3fe2393fe0f9..e26da9dc0c9b 100644 --- a/layout/html/style/src/nsCSSFrameConstructor.cpp +++ b/layout/html/style/src/nsCSSFrameConstructor.cpp @@ -1661,6 +1661,8 @@ nsCSSFrameConstructor::ConstructDocElementFrame(nsIPresContext* aPresContext, NS_NewAreaFrame(areaFrame, 0); areaFrame->Init(*aPresContext, aDocElement, aParentFrame, styleContext, nsnull); + nsHTMLContainerFrame::CreateViewForFrame(*aPresContext, areaFrame, + styleContext, PR_FALSE); // The area frame is the "initial containing block" mInitialContainingBlock = areaFrame;