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

Side by Side Diff: Source/build/scripts/templates/StyleBuilderFunctions.cpp.tmpl

Issue 112463008: Move core/platform/animation files (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add comments and platform tests Created 6 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | Source/core/animation/AnimationTranslationUtil.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 {% from "macros.tmpl" import lower_first -%} 1 {% from "macros.tmpl" import lower_first -%}
2 2
3 {# 3 {#
4 This file is for property handlers which use the templating engine to 4 This file is for property handlers which use the templating engine to
5 reduce (handwritten) code duplication. 5 reduce (handwritten) code duplication.
6 6
7 The `properties' dict can be used to access a property's parameters in 7 The `properties' dict can be used to access a property's parameters in
8 jinja2 templates (i.e. setter, getter, initial, type_name) 8 jinja2 templates (i.e. setter, getter, initial, type_name)
9 -#} 9 -#}
10 10
11 #include "config.h" 11 #include "config.h"
12 #include "StyleBuilderFunctions.h" 12 #include "StyleBuilderFunctions.h"
13 13
14 #include "CSSValueKeywords.h" 14 #include "CSSValueKeywords.h"
15 #include "core/animation/css/CSSAnimationDataList.h"
15 #include "core/css/BasicShapeFunctions.h" 16 #include "core/css/BasicShapeFunctions.h"
16 #include "core/css/CSSPrimitiveValueMappings.h" 17 #include "core/css/CSSPrimitiveValueMappings.h"
17 #include "core/css/Pair.h" 18 #include "core/css/Pair.h"
18 #include "core/css/resolver/StyleResolverState.h" 19 #include "core/css/resolver/StyleResolverState.h"
19 #include "core/platform/animation/CSSAnimationDataList.h"
20 20
21 21
22 {%- macro declare_initial_function(property_id) -%} 22 {%- macro declare_initial_function(property_id) -%}
23 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat e) 23 void StyleBuilderFunctions::applyInitial{{property_id}}(StyleResolverState& stat e)
24 {%- endmacro %} 24 {%- endmacro %}
25 25
26 {%- macro declare_inherit_function(property_id) -%} 26 {%- macro declare_inherit_function(property_id) -%}
27 void StyleBuilderFunctions::applyInherit{{property_id}}(StyleResolverState& stat e) 27 void StyleBuilderFunctions::applyInherit{{property_id}}(StyleResolverState& stat e)
28 {%- endmacro %} 28 {%- endmacro %}
29 29
(...skipping 475 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 } else if (value->isImageValue()) { 505 } else if (value->isImageValue()) {
506 {{ set_value(property) }}(ShapeValue::createImageValue(state.styleImage( {{property_id}}, value))); 506 {{ set_value(property) }}(ShapeValue::createImageValue(state.styleImage( {{property_id}}, value)));
507 } 507 }
508 } 508 }
509 {%- endmacro %} 509 {%- endmacro %}
510 510
511 {{ apply_value_shape("CSSPropertyShapeInside") }} 511 {{ apply_value_shape("CSSPropertyShapeInside") }}
512 {{ apply_value_shape("CSSPropertyShapeOutside") }} 512 {{ apply_value_shape("CSSPropertyShapeOutside") }}
513 513
514 } // namespace WebCore 514 } // namespace WebCore
OLDNEW
« no previous file with comments | « no previous file | Source/core/animation/AnimationTranslationUtil.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698