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

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

Issue 2879563002: Refactor code generation to allow us to diff generic expressions and not just fields (Closed)
Patch Set: 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"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 enum IsAtShadowBoundary { 80 enum IsAtShadowBoundary {
81 kAtShadowBoundary, 81 kAtShadowBoundary,
82 kNotAtShadowBoundary, 82 kNotAtShadowBoundary,
83 }; 83 };
84 void InheritFrom(const ComputedStyleBase& inheritParent, 84 void InheritFrom(const ComputedStyleBase& inheritParent,
85 IsAtShadowBoundary isAtShadowBoundary = kNotAtShadowBoundary) ; 85 IsAtShadowBoundary isAtShadowBoundary = kNotAtShadowBoundary) ;
86 86
87 void CopyNonInheritedFromCached(const ComputedStyleBase& other); 87 void CopyNonInheritedFromCached(const ComputedStyleBase& other);
88 bool DiffNeedsFullLayoutAndPaintInvalidation( 88 bool DiffNeedsFullLayoutAndPaintInvalidation(
89 const ComputedStyleBase& other) const; 89 const ComputedStyleBase& other) const;
90 bool ScrollAnchorDisablingPropertyChanged(const ComputedStyleBase& other, 90 bool ScrollAnchorDisablingPropertyChanged(const ComputedStyleBase& other) cons t;
91 const StyleDifference&) const;
92 91
93 // Copies the values of any independent inherited properties from the parent 92 // Copies the values of any independent inherited properties from the parent
94 // style that are marked as inherited by this style. 93 // style that are marked as inherited by this style.
95 void PropagateIndependentInheritedProperties( 94 void PropagateIndependentInheritedProperties(
96 const ComputedStyleBase& parentStyle); 95 const ComputedStyleBase& parentStyle);
97 96
98 // Fields. 97 // Fields.
99 // TODO(sashab): Remove initialFoo() static methods and update callers to 98 // TODO(sashab): Remove initialFoo() static methods and update callers to
100 // use resetFoo(), which can be more efficient. 99 // use resetFoo(), which can be more efficient.
101 100
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 145
147 private: 146 private:
148 {% for field in computed_style.fields %} 147 {% for field in computed_style.fields %}
149 {{declare_storage(field)}} 148 {{declare_storage(field)}}
150 {% endfor %} 149 {% endfor %}
151 }; 150 };
152 151
153 } // namespace blink 152 } // namespace blink
154 153
155 #endif // ComputedStyleBase_h 154 #endif // ComputedStyleBase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698