Bug 1299753 Part 1 - Use NS_NewBlockFormattingContext() in ConstructFieldSetFrame(). draft
authorTing-Yu Lin <tlin@mozilla.com>
Mon, 05 Sep 2016 15:36:53 +0800
changeset 412031 cec933ca4118039abfba651e20632dc378b81f20
parent 411959 176aff980979bf588baed78c2824571a6a7f2b96
child 412032 3485cdd3f52f8e4b195e236ac8d7ae5b0dcdc028
push id29027
push userbmo:tlin@mozilla.com
push dateFri, 09 Sep 2016 04:20:42 +0000
bugs1299753
milestone51.0a1
Bug 1299753 Part 1 - Use NS_NewBlockFormattingContext() in ConstructFieldSetFrame(). MozReview-Commit-ID: E6lvCRIDROY
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -3284,18 +3284,17 @@ nsCSSFrameConstructor::ConstructFieldSet
           NS_NewColumnSetFrame(mPresShell, fieldsetContentStyle, nsFrameState(0));
         InitAndRestoreFrame(aState, content, parent, columnSetFrame);
         innerSC = mPresShell->StyleSet()->ResolveAnonymousBoxStyle(
                     nsCSSAnonBoxes::columnContent, fieldsetContentStyle);
         if (absPosContainer) {
           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);
         contentFrameTop = columnSetFrame;
       } else {
         InitAndRestoreFrame(aState, content, parent, contentFrame);
         contentFrameTop = contentFrame;
       }