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

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

Issue 1229273004: Remove Animations and Transitions. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 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: 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 d141a02202eb8e48b0e6957aa81a9d23f380aaa7..5d11943c80e0c37f061dad373dad99f5f0c81ec4 100644
--- a/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
+++ b/sky/engine/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl
@@ -73,45 +73,6 @@ namespace blink {
{% endif %}
{% endfor %}
-{% macro apply_animation(property_id, attribute, animation) %}
-{% set vector = attribute|lower_first + "List()" %}
-{{declare_initial_function(property_id)}}
-{
- CSS{{animation}}Data& data = state.style()->access{{animation}}s();
- data.{{vector}}.clear();
- data.{{vector}}.append(CSS{{animation}}Data::initial{{attribute}}());
-}
-
-{{declare_inherit_function(property_id)}}
-{
- const CSS{{animation}}Data* parentData = state.parentStyle()->{{animation|lower}}s();
- if (!parentData)
- applyInitial{{property_id}}(state);
- else
- state.style()->access{{animation}}s().{{vector}} = parentData->{{vector}};
-}
-
-{{declare_value_function(property_id)}}
-{
- CSS{{animation}}Data& data = state.style()->access{{animation}}s();
- data.{{vector}}.clear();
- for (CSSValueListIterator i = value; i.hasMore(); i.advance())
- data.{{vector}}.append(state.styleMap().mapAnimation{{attribute}}(i.value()));
-}
-{% endmacro %}
-{{apply_animation('CSSPropertyAnimationDelay', 'Delay', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationDirection', 'Direction', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationDuration', 'Duration', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationFillMode', 'FillMode', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationIterationCount', 'IterationCount', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationName', 'Name', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationPlayState', 'PlayState', 'Animation')}}
-{{apply_animation('CSSPropertyAnimationTimingFunction', 'TimingFunction', 'Animation')}}
-{{apply_animation('CSSPropertyTransitionDelay', 'Delay', 'Transition')}}
-{{apply_animation('CSSPropertyTransitionDuration', 'Duration', 'Transition')}}
-{{apply_animation('CSSPropertyTransitionProperty', 'Property', 'Transition')}}
-{{apply_animation('CSSPropertyTransitionTimingFunction', 'TimingFunction', 'Transition')}}
-
{% macro apply_auto(property_id, auto_getter=none, auto_setter=none, auto_identity='CSSValueAuto') %}
{% set property = properties[property_id] %}
{% set auto_getter = auto_getter or 'hasAuto' + property.name_for_methods %}
« no previous file with comments | « sky/engine/build/scripts/make_css_property_metadata.py ('k') | sky/engine/core/animation/ActiveAnimations.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698