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

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

Issue 2858863002: Add macro to diff the groups (and their members) in ComputedStyleBase (Closed)
Patch Set: use results from diff functions generated in ComputedStyleBase.cpp in ComputedStyle.cpp 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, declare_storage, f ieldwise_compare %} 2 {% from 'fields/field.tmpl' import encode, getter_expression, declare_storage, f ieldwise_compare %}
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 {% for path in include_paths %} 13 {% for path in include_paths %}
13 #include "{{path}}" 14 #include "{{path}}"
14 {% endfor %} 15 {% endfor %}
15 16
16 {# Each field template has macros that we can call to generate specific 17 {# Each field template has macros that we can call to generate specific
17 aspects of the field (e.g. getters, setters). 18 aspects of the field (e.g. getters, setters).
18 #} 19 #}
19 {% import 'fields/keyword.tmpl' as keyword %} 20 {% import 'fields/keyword.tmpl' as keyword %}
20 {% import 'fields/primitive.tmpl' as primitive %} 21 {% import 'fields/primitive.tmpl' as primitive %}
21 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %} 22 {% import 'fields/monotonic_flag.tmpl' as monotonic_flag %}
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 } 78 }
78 79
79 enum IsAtShadowBoundary { 80 enum IsAtShadowBoundary {
80 kAtShadowBoundary, 81 kAtShadowBoundary,
81 kNotAtShadowBoundary, 82 kNotAtShadowBoundary,
82 }; 83 };
83 void InheritFrom(const ComputedStyleBase& inheritParent, 84 void InheritFrom(const ComputedStyleBase& inheritParent,
84 IsAtShadowBoundary isAtShadowBoundary = kNotAtShadowBoundary) ; 85 IsAtShadowBoundary isAtShadowBoundary = kNotAtShadowBoundary) ;
85 86
86 void CopyNonInheritedFromCached(const ComputedStyleBase& other); 87 void CopyNonInheritedFromCached(const ComputedStyleBase& other);
88 bool DiffNeedsFullLayoutAndPaintInvalidation(
89 const ComputedStyleBase& other) const;
90 bool ScrollAnchorDisablingPropertyChanged(const ComputedStyleBase& other,
91 const StyleDifference&) const;
87 92
88 // Copies the values of any independent inherited properties from the parent 93 // Copies the values of any independent inherited properties from the parent
89 // style that are marked as inherited by this style. 94 // style that are marked as inherited by this style.
90 void PropagateIndependentInheritedProperties( 95 void PropagateIndependentInheritedProperties(
91 const ComputedStyleBase& parentStyle); 96 const ComputedStyleBase& parentStyle);
92 97
93 // Fields. 98 // Fields.
94 // TODO(sashab): Remove initialFoo() static methods and update callers to 99 // TODO(sashab): Remove initialFoo() static methods and update callers to
95 // use resetFoo(), which can be more efficient. 100 // use resetFoo(), which can be more efficient.
96 101
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 140
136 private: 141 private:
137 {% for field in computed_style.fields %} 142 {% for field in computed_style.fields %}
138 {{declare_storage(field)}} 143 {{declare_storage(field)}}
139 {% endfor %} 144 {% endfor %}
140 }; 145 };
141 146
142 } // namespace blink 147 } // namespace blink
143 148
144 #endif // ComputedStyleBase_h 149 #endif // ComputedStyleBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698