Bug 724706 - Use NS_NewBlockFormattingContext instead of NS_NewBlockFrame with the bfc flags. r=roc
--- 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.