Bug 1151316 part 1 - [css-grid] Implement relative positioning for grid items. r=roc
authorMats Palmgren <mats@mozilla.com>
Tue, 05 May 2015 21:53:22 +0000
changeset 272322 d15e7deb67fd28c86d363287ee4e181439a1e2ea
parent 272321 98839fa23be9f3f3edaa8a6fccb1af2643b92584
child 272323 6ff073aa7f130450ac8ede04cd88231c57bcc216
push id4830
push userjlund@mozilla.com
push dateMon, 29 Jun 2015 20:18:48 +0000
treeherdermozilla-beta@4c2175bb0420 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersroc
bugs1151316
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1151316 part 1 - [css-grid] Implement relative positioning for grid items. r=roc
layout/generic/nsGridContainerFrame.cpp
--- a/layout/generic/nsGridContainerFrame.cpp
+++ b/layout/generic/nsGridContainerFrame.cpp
@@ -1229,16 +1229,17 @@ nsGridContainerFrame::ReflowChildren(Gri
     }
     LogicalPoint childPos = cb.Origin(wm);
     childPos.I(wm) += margin.IStart(wm);
     childPos.B(wm) += margin.BStart(wm);
     nsHTMLReflowMetrics childSize(childRS);
     nsReflowStatus childStatus;
     ReflowChild(child, pc, childSize, childRS, wm, childPos,
                 containerWidth, 0, childStatus);
+    childRS.ApplyRelativePositioning(&childPos, containerWidth);
     FinishReflowChild(child, pc, childSize, &childRS, wm, childPos,
                       containerWidth, 0);
     ConsiderChildOverflow(aDesiredSize.mOverflowAreas, child);
     // XXX deal with 'childStatus' not being COMPLETE
   }
 
   if (IsAbsoluteContainer()) {
     nsFrameList children(GetChildList(GetAbsoluteListID()));