Copied state bits to new block frames draft
authorNeerja Pancholi <npancholi@mozilla.com>
Sun, 24 Sep 2017 22:05:44 -0700
changeset 698697 19cfac8892335208d53353430859e17eca07e594
parent 698696 dc05a58580f4abb6d1db373c08907808a47fbf4b
child 698698 688a4075157c18d2b3238ae2c16117969363e5b3
push id89334
push userbmo:npancholi@mozilla.com
push dateThu, 16 Nov 2017 00:39:30 +0000
milestone59.0a1
Copied state bits to new block frames MozReview-Commit-ID: IBJdtYh3mFi
layout/base/nsCSSFrameConstructor.cpp
--- a/layout/base/nsCSSFrameConstructor.cpp
+++ b/layout/base/nsCSSFrameConstructor.cpp
@@ -12482,16 +12482,17 @@ WrapNonSpannerChildrenInColumnSets(nsFra
 
     nsContainerFrame* columnSetFrame =
       NS_NewColumnSetFrame(mPresShell, columnSetStyle,
                            nsFrameState(NS_FRAME_OWNS_ANON_BOXES));
     InitAndRestoreFrame(aState, content, columnSetWrapper, columnSetFrame);
 
     nsBlockFrame* blockFrame = NS_NewBlockFrame(mPresShell, blockStyle);
     InitAndRestoreFrame(aState, content, columnSetFrame, blockFrame);
+    blockFrame->AddStateBits(aOldParent->GetStateBits());
 
     MoveChildrenTo(aOldParent, blockFrame, children);
     SetInitialSingleChild(columnSetFrame, blockFrame);
 
     // Setting parent to columnSetWrapper is unnecessary here because
     // MoveChildrenTo (later on) will reparent the finalchildList
     aFinalChildItems.AppendFrame(columnSetWrapper, columnSetFrame);
   }