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

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

Issue 2830573002: Use generated getters/setters in ComputedStyle instead of directly accessing fields (Closed)
Patch Set: Grammatical nit Created 3 years, 8 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 | third_party/WebKit/Source/core/style/ComputedStyle.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 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/style/ComputedStyleConstants.h" 7 #include "core/style/ComputedStyleConstants.h"
8 #include "core/CoreExport.h" 8 #include "core/CoreExport.h"
9 {% for path in include_paths %} 9 {% for path in include_paths %}
10 #include "{{path}}" 10 #include "{{path}}"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 {% for field in fields %} 96 {% for field in fields %}
97 {% if field.field_template in ('storage_only', 'monotonic_flag', 'external') % } 97 {% if field.field_template in ('storage_only', 'monotonic_flag', 'external') % }
98 // {{field.property_name}} 98 // {{field.property_name}}
99 {{field_templates[field.field_template].decl_protected_methods(field)|indent(2 )}} 99 {{field_templates[field.field_template].decl_protected_methods(field)|indent(2 )}}
100 100
101 {% endif %} 101 {% endif %}
102 {% endfor %} 102 {% endfor %}
103 103
104 ~ComputedStyleBase() = default; 104 ~ComputedStyleBase() = default;
105 105
106 private:
106 // Storage. 107 // Storage.
107 {% for field in fields %} 108 {% for field in fields %}
108 {% if field.is_bit_field %} 109 {% if field.is_bit_field %}
109 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} 110 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}}
110 {% else %} 111 {% else %}
111 {{field.type_name}} {{field.name}}; 112 {{field.type_name}} {{field.name}};
112 {% endif %} 113 {% endif %}
113 {% endfor %} 114 {% endfor %}
114 }; 115 };
115 116
116 } // namespace blink 117 } // namespace blink
117 118
118 #endif // ComputedStyleBase_h 119 #endif // ComputedStyleBase_h
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698