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

Unified Diff: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 148293008: [CSS Grid Layout] Add support to place items using named grid lines (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing v3. Fix for Debug bot Created 6 years, 7 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: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index 1c79f6bcd437baace3fed3fe42a829921b5528d3..0b2851ee9f044a75f4ebb3335c9d0a49c4925bb8 100644
--- a/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -446,6 +446,9 @@ namespace WebCore {
OrderedNamedGridLines orderedNamedGridLines;
if (!StyleBuilderConverter::convertGridTrackList(value, trackSizes, namedGridLines, orderedNamedGridLines, state))
return;
+ const NamedGridAreaMap& namedGridAreas = state.style()->namedGridArea();
+ if (!namedGridAreas.isEmpty())
+ StyleBuilderConverter::createImplicitNamedGridLinesFromGridArea(namedGridAreas, namedGridLines, For{{type}}s);
state.style()->setGridTemplate{{type}}s(trackSizes);
state.style()->setNamedGrid{{type}}Lines(namedGridLines);
state.style()->setOrderedNamedGrid{{type}}Lines(orderedNamedGridLines);

Powered by Google App Engine
This is Rietveld 408576698