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

Unified Diff: third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp

Issue 2166393002: [css-grid] grid-auto-flow|row should take a <track-size>+ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing v2 Created 4 years, 5 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/resolver/StyleBuilderConverter.cpp
diff --git a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
index bd5c532c1470f56bbd8ebc749d3d5b24f6b72abe..e93c7791f92ef20a5c0db9f986aba65a2fe41451 100644
--- a/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
+++ b/third_party/WebKit/Source/core/css/resolver/StyleBuilderConverter.cpp
@@ -555,6 +555,18 @@ static void convertGridLineNamesList(const CSSValue& value, size_t currentNamedG
}
}
+Vector<GridTrackSize> StyleBuilderConverter::convertGridTrackSizeList(StyleResolverState& state, const CSSValue& value)
+{
+ DCHECK(value.isValueList());
+ Vector<GridTrackSize> trackSizes;
+ for (auto& currValue : toCSSValueList(value)) {
+ DCHECK(!currValue->isGridLineNamesValue());
+ DCHECK(!currValue->isGridAutoRepeatValue());
+ trackSizes.append(convertGridTrackSize(state, *currValue));
+ }
+ return trackSizes;
+}
+
void StyleBuilderConverter::convertGridTrackList(const CSSValue& value, Vector<GridTrackSize>& trackSizes, NamedGridLinesMap& namedGridLines, OrderedNamedGridLines& orderedNamedGridLines, Vector<GridTrackSize>& autoRepeatTrackSizes, NamedGridLinesMap& autoRepeatNamedGridLines, OrderedNamedGridLines& autoRepeatOrderedNamedGridLines, size_t& autoRepeatInsertionPoint, AutoRepeatType &autoRepeatType, StyleResolverState& state)
{
if (value.isPrimitiveValue()) {

Powered by Google App Engine
This is Rietveld 408576698