Bug 1299753 Part 1 - Use NS_NewBlockFormattingContext() in ConstructFieldSetFrame(). r=bz

MozReview-Commit-ID: E6lvCRIDROY

--HG--
extra : rebase_source : 52f59f6db123e47c1230dc19c49d2dbf7c6cb0d6
This commit is contained in:
Ting-Yu Lin 2016-09-05 15:36:53 +08:00
parent b7ca8b1d80
commit c719ccc151

View File

@ -3289,8 +3289,7 @@ nsCSSFrameConstructor::ConstructFieldSetFrame(nsFrameConstructorState& aState,
absPosContainer = columnSetFrame;
}
}
contentFrame = NS_NewBlockFrame(mPresShell, innerSC,
NS_BLOCK_FLOAT_MGR | NS_BLOCK_MARGIN_ROOT);
contentFrame = NS_NewBlockFormattingContext(mPresShell, innerSC);
if (columnSetFrame) {
InitAndRestoreFrame(aState, content, columnSetFrame, contentFrame);
SetInitialSingleChild(columnSetFrame, contentFrame);