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

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp

Issue 2057113002: [css-grid] Allow percentage values for column and row gutters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch rebased. New positioned test cases and related bug fixes. Created 4 years, 6 months 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/css/ComputedStyleCSSValueMapping.cpp
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
index c0377df923235f63f5ab729e2474e687f4d5e76d..401dc77b6fca62b2b1fd5db11eb9ba4438f42d76 100644
--- a/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
+++ b/third_party/WebKit/Source/core/css/ComputedStyleCSSValueMapping.cpp
@@ -842,7 +842,7 @@ static CSSValue* valueForGridTrackList(GridTrackSizingDirection direction, const
ASSERT(trackPositions.size() - 1 >= trackSizes.size());
size_t i;
- LayoutUnit gutterSize = grid->guttersSize(direction, 2);
+ LayoutUnit gutterSize = grid->guttersSize(direction, 2, isRowAxis ? grid->logicalWidth() : grid->logicalHeight());
cbiesinger 2016/06/22 18:46:13 The spec says they refer to the content area, so s
jfernandez 2016/06/27 23:56:47 Done.
LayoutUnit offsetBetweenTracks = grid->offsetBetweenTracks(direction);
for (i = 0; i < trackPositions.size() - 2; ++i) {
addValuesForNamedGridLinesAtIndex(collector, i, *list);

Powered by Google App Engine
This is Rietveld 408576698