Undo BlockReflowContext change where margin is incorrect due to parent passing wrong ISize draft
authorNeerja Pancholi <npancholi@mozilla.com>
Mon, 23 Oct 2017 14:01:34 -0700
changeset 698704 411c9de81d577e3e6bacb49429a16a3bdbf3718b
parent 698703 9a3d51b58a4f98c52db511e88dfc94f7bcd8c372
child 698705 a08ec1b7ef152738b62c855d3770ba3da3a72f95
push id89334
push userbmo:npancholi@mozilla.com
push dateThu, 16 Nov 2017 00:39:30 +0000
milestone59.0a1
Undo BlockReflowContext change where margin is incorrect due to parent passing wrong ISize MozReview-Commit-ID: 46d1ic92kkH
layout/generic/nsBlockReflowContext.cpp
--- a/layout/generic/nsBlockReflowContext.cpp
+++ b/layout/generic/nsBlockReflowContext.cpp
@@ -293,17 +293,17 @@ nsBlockReflowContext::ReflowBlock(const 
     tB = mBCoord;
 
     if ((mFrame->GetStateBits() & NS_BLOCK_FLOAT_MGR) == 0)
       aFrameRI.mBlockDelta =
         mOuterReflowInput.mBlockDelta + mBCoord - aLine->BStart();
 
     // XXXneerja - temporary fix for margin related bug
     // Parent doesn't pass correct ISize!!
-    aFrameRI.AvailableISize() = space.ISize(mWritingMode);
+    //aFrameRI.AvailableISize() = space.ISize(mWritingMode);
   }
 
 #ifdef DEBUG
   mMetrics.ISize(mWritingMode) = nscoord(0xdeadbeef);
   mMetrics.BSize(mWritingMode) = nscoord(0xdeadbeef);
 #endif
 
   mOuterReflowInput.mFloatManager->Translate(tI, tB);