Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(231)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutGrid.cpp

Issue 2543193002: [css-grid] Use child's marginLogicalWidth to compute content-sized track (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/layout/LayoutGrid.cpp
diff --git a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
index 65737726ec1058d94d672d2ac6575009d267aca6..7add5aa49376663a413b0a63b71fbdc6bdc8508a 100644
--- a/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
+++ b/third_party/WebKit/Source/core/layout/LayoutGrid.cpp
@@ -1381,8 +1381,7 @@ LayoutUnit LayoutGrid::minContentForChild(LayoutBox& child,
// FIXME: It's unclear if we should return the intrinsic width or the
// preferred width.
// See http://lists.w3.org/Archives/Public/www-style/2013Jan/0245.html
- return child.minPreferredLogicalWidth() +
- marginIntrinsicLogicalWidthForChild(child);
+ return child.minPreferredLogicalWidth() + child.marginLogicalWidth();
}
// All orthogonal flow boxes were already laid out during an early layout
@@ -1421,8 +1420,7 @@ LayoutUnit LayoutGrid::maxContentForChild(LayoutBox& child,
// FIXME: It's unclear if we should return the intrinsic width or the
// preferred width.
// See http://lists.w3.org/Archives/Public/www-style/2013Jan/0245.html
- return child.maxPreferredLogicalWidth() +
- marginIntrinsicLogicalWidthForChild(child);
+ return child.maxPreferredLogicalWidth() + child.marginLogicalWidth();
}
// All orthogonal flow boxes were already laid out during an early layout

Powered by Google App Engine
This is Rietveld 408576698