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

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

Issue 2692943006: Only include unique files in generated ComputedStyleBase.h (Closed)
Patch Set: Rebase Created 3 years, 10 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 | « third_party/WebKit/Source/build/scripts/make_computed_style_base.py ('k') | no next file » | 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 license, print_if %} 1 {% from 'macros.tmpl' import license, print_if %}
2 {{license()}} 2 {{license()}}
3 3
4 #ifndef ComputedStyleBase_h 4 #ifndef ComputedStyleBase_h
5 #define ComputedStyleBase_h 5 #define ComputedStyleBase_h
6 6
7 #include "core/ComputedStyleBaseConstants.h" 7 #include "core/ComputedStyleBaseConstants.h"
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 {% for field in fields if field.field_type_path != None %} 9 {% for path in include_paths %}
10 #include "{{field.field_type_path}}.h" 10 #include "{{path}}"
11 {% endfor %} 11 {% endfor %}
12 12
13 {# Returns the default value for the field, converted to fit in the storage cont ainer. #} 13 {# Returns the default value for the field, converted to fit in the storage cont ainer. #}
14 {% macro default_value(field) -%} 14 {% macro default_value(field) -%}
15 {# We only support enum fields for now. #} 15 {# We only support enum fields for now. #}
16 static_cast<unsigned>({{field.default_value}}) 16 static_cast<unsigned>({{field.default_value}})
17 {%- endmacro %} 17 {%- endmacro %}
18 18
19 namespace blink { 19 namespace blink {
20 20
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 protected: 126 protected:
127 // Storage. 127 // Storage.
128 {% for field in fields %} 128 {% for field in fields %}
129 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} 129 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}}
130 {% endfor %} 130 {% endfor %}
131 }; 131 };
132 132
133 } // namespace blink 133 } // namespace blink
134 134
135 #endif // ComputedStyleBase_h 135 #endif // ComputedStyleBase_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/build/scripts/make_computed_style_base.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698