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

Unified Diff: sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 689853003: Remove CSS Grid Layout and grid media queries. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « no previous file | sky/engine/core/core.gni » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
diff --git a/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl b/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
index 5cc02304f78d2bf95560414be2ce7a0e6cdb587b..26716bd4526236aad67b6bde583b0cb04b818f2c 100644
--- a/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -437,39 +437,6 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
{{apply_fill_layer('CSSPropertyWebkitMaskRepeatY', 'RepeatY')}}
{{apply_fill_layer('CSSPropertyWebkitMaskSize', 'Size')}}
-{% macro apply_grid_template(property_id, type) %}
-{{declare_initial_function(property_id)}}
-{
- state.style()->setGridTemplate{{type}}s(RenderStyle::initialGridTemplate{{type}}s());
- state.style()->setNamedGrid{{type}}Lines(RenderStyle::initialNamedGrid{{type}}Lines());
- state.style()->setOrderedNamedGrid{{type}}Lines(RenderStyle::initialOrderedNamedGrid{{type}}Lines());
-}
-
-{{declare_inherit_function(property_id)}}
-{
- state.style()->setGridTemplate{{type}}s(state.parentStyle()->gridTemplate{{type}}s());
- state.style()->setNamedGrid{{type}}Lines(state.parentStyle()->namedGrid{{type}}Lines());
- state.style()->setOrderedNamedGrid{{type}}Lines(state.parentStyle()->orderedNamedGrid{{type}}Lines());
-}
-
-{{declare_value_function(property_id)}}
-{
- Vector<GridTrackSize> trackSizes;
- NamedGridLinesMap namedGridLines;
- 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);
-}
-{% endmacro %}
-{{apply_grid_template('CSSPropertyGridTemplateColumns', 'Column')}}
-{{apply_grid_template('CSSPropertyGridTemplateRows', 'Row')}}
-
{% macro apply_value_number(property_id, id_for_minus_one) %}
{{declare_value_function(property_id)}}
{
@@ -546,7 +513,6 @@ static bool lengthTypeAndValueMatch(const BorderImageLengthBox& borderImageLengt
}
}
{% endmacro %}
-{{apply_alignment('CSSPropertyJustifySelf', 'JustifySelf')}}
{{apply_alignment('CSSPropertyAlignItems', 'AlignItems')}}
{{apply_alignment('CSSPropertyAlignSelf', 'AlignSelf')}}
« no previous file with comments | « no previous file | sky/engine/core/core.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698