OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |