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

Side by Side Diff: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl

Issue 2887333003: Generate StyleRareInheritedData in ComputedStyleBase. (Closed)
Patch Set: Rebase Created 3 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 unified diff | Download patch
OLDNEW
1 {% from 'macros.tmpl' import license, print_if %} 1 {% from 'macros.tmpl' import license, print_if %}
2 {% from 'fields/field.tmpl' import encode, getter_expression, setter_expression, declare_storage, fieldwise_compare, fieldwise_copy, fieldwise_diff, fieldwise_p ointer_compare_inherited %} 2 {% from 'fields/field.tmpl' import encode, getter_expression, setter_expression, declare_storage, fieldwise_compare, fieldwise_copy, fieldwise_diff, fieldwise_p ointer_compare_inherited %}
3 {% from 'fields/group.tmpl' import define_field_group_class %} 3 {% from 'fields/group.tmpl' import define_field_group_class %}
4 {{license()}} 4 {{license()}}
5 5
6 #ifndef ComputedStyleBase_h 6 #ifndef ComputedStyleBase_h
7 #define ComputedStyleBase_h 7 #define ComputedStyleBase_h
8 8
9 #include "core/style/ComputedStyleConstants.h" 9 #include "core/style/ComputedStyleConstants.h"
10 #include "core/CoreExport.h" 10 #include "core/CoreExport.h"
11 #include "core/style/DataRef.h" 11 #include "core/style/DataRef.h"
12 #include "core/style/StyleDifference.h" 12 #include "core/style/StyleDifference.h"
13 #include "platform/wtf/SizeAssertions.h" 13 #include "platform/wtf/SizeAssertions.h"
14 #include "core/layout/LayoutTheme.h"
nainar 2017/05/21 23:59:35 Why did you have to add this by hand?
shend 2017/05/22 00:19:19 The default value of one of the fields is a static
14 {% for path in include_paths %} 15 {% for path in include_paths %}
15 #include "{{path}}" 16 #include "{{path}}"
16 {% endfor %} 17 {% endfor %}
17 18
18 {# Each field template has macros that we can call to generate specific 19 {# Each field template has macros that we can call to generate specific
19 aspects of the field (e.g. getters, setters). 20 aspects of the field (e.g. getters, setters).
20 #} 21 #}
21 {% import 'fields/keyword.tmpl' as keyword %} 22 {% import 'fields/keyword.tmpl' as keyword %}
22 {% import 'fields/primitive.tmpl' as primitive %} 23 {% import 'fields/primitive.tmpl' as primitive %}
23 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} 24 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %}
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 195
195 private: 196 private:
196 {% for field in computed_style.fields %} 197 {% for field in computed_style.fields %}
197 {{declare_storage(field)}} 198 {{declare_storage(field)}}
198 {% endfor %} 199 {% endfor %}
199 }; 200 };
200 201
201 } // namespace blink 202 } // namespace blink
202 203
203 #endif // ComputedStyleBase_h 204 #endif // ComputedStyleBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698