Bug 724706 - Use NS_NewBlockFormattingContext instead of NS_NewBlockFrame with the bfc flags. r=roc
authorCameron McCormack <cam@mcc.id.au>
Tue, 07 Feb 2012 10:49:08 +1100
changeset 89148 309f3e2adbd6d2eb48aa9fbec2422db330b8e2a1
parent 89147 290c4cdaa79636a22e80345b3f97aa19f6f023e1
child 89149 7ca453c9d27dd718851ac63f0ff2863d093be72b
push idunknown
push userunknown
push dateunknown
reviewersroc
bugs724706
milestone13.0a1
Bug 724706 - Use NS_NewBlockFormattingContext instead of NS_NewBlockFrame with the bfc flags. r=roc
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -4939,19 +4939,18 @@ nsCSSFrameConstructor::ConstructSVGForei
   if (NS_FAILED(rv)) {
     return rv;
   }
 
   nsRefPtr<nsStyleContext> innerPseudoStyle;
   innerPseudoStyle = mPresShell->StyleSet()->
     ResolveAnonymousBoxStyle(nsCSSAnonBoxes::mozSVGForeignContent, styleContext);
 
-  nsIFrame* blockFrame = NS_NewBlockFrame(mPresShell, innerPseudoStyle,
-                                          NS_BLOCK_FLOAT_MGR |
-                                          NS_BLOCK_MARGIN_ROOT);
+  nsIFrame* blockFrame = NS_NewBlockFormattingContext(mPresShell,
+                                                      innerPseudoStyle);
   if (NS_UNLIKELY(!blockFrame)) {
     newFrame->Destroy();
     return NS_ERROR_OUT_OF_MEMORY;
   }
 
   nsFrameItems childItems;
   // Claim to be relatively positioned so that we end up being the
   // absolute containing block.