summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/Source/build/scripts/templates
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/WebKit/Source/build/scripts/templates')
-rw-r--r--third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl14
1 files changed, 13 insertions, 1 deletions
diff --git a/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index 61d5c25..6097cfc 100644
--- a/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -461,15 +461,27 @@ static bool borderImageLengthMatchesAllSides(const BorderImageLengthBox& borderI
{{declare_value_function(property_id)}}
{
Vector<GridTrackSize> trackSizes;
+ Vector<GridTrackSize> autoRepeatTrackSizes;
+ size_t autoRepeatInsertionPoint;
NamedGridLinesMap namedGridLines;
OrderedNamedGridLines orderedNamedGridLines;
- StyleBuilderConverter::convertGridTrackList(*value, trackSizes, namedGridLines, orderedNamedGridLines, state);
+ NamedGridLinesMap autoRepeatNamedGridLines;
+ OrderedNamedGridLines autoRepeatOrderedNamedGridLines;
+ AutoRepeatType autoRepeatType;
+ StyleBuilderConverter::convertGridTrackList(*value, trackSizes, namedGridLines, orderedNamedGridLines, autoRepeatTrackSizes, autoRepeatNamedGridLines, autoRepeatOrderedNamedGridLines, autoRepeatInsertionPoint, autoRepeatType, state);
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);
+ if (autoRepeatTrackSizes.size()) {
+ state.style()->setGridAutoRepeat{{type}}s(autoRepeatTrackSizes);
+ state.style()->setGridAutoRepeat{{type}}sInsertionPoint(autoRepeatInsertionPoint);
+ state.style()->setAutoRepeatNamedGrid{{type}}Lines(autoRepeatNamedGridLines);
+ state.style()->setAutoRepeatOrderedNamedGrid{{type}}Lines(autoRepeatOrderedNamedGridLines);
+ state.style()->setGridAutoRepeatType(autoRepeatType);
+ }
}
{% endmacro %}
{{apply_grid_template('CSSPropertyGridTemplateColumns', 'Column')}}