| OLD | NEW |
| 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 path in include_paths %} | 9 {% for path in include_paths %} |
| 10 #include "{{path}}" | 10 #include "{{path}}" |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 } | 70 } |
| 71 | 71 |
| 72 inline bool nonInheritedEqual(const ComputedStyleBase& o) const { | 72 inline bool nonInheritedEqual(const ComputedStyleBase& o) const { |
| 73 return true && | 73 return true && |
| 74 {% for field in fields if field.is_property and not field.is_inherited %} | 74 {% for field in fields if field.is_property and not field.is_inherited %} |
| 75 {{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}} | 75 {{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}} |
| 76 {% endfor %} | 76 {% endfor %} |
| 77 ; | 77 ; |
| 78 } | 78 } |
| 79 | 79 |
| 80 void setBitDefaults() { | |
| 81 {% for field in fields %} | |
| 82 {{field.resetter_method_name}}(); | |
| 83 {% endfor %} | |
| 84 } | |
| 85 | |
| 86 enum IsAtShadowBoundary { | 80 enum IsAtShadowBoundary { |
| 87 AtShadowBoundary, | 81 AtShadowBoundary, |
| 88 NotAtShadowBoundary, | 82 NotAtShadowBoundary, |
| 89 }; | 83 }; |
| 90 void inheritFrom(const ComputedStyleBase& inheritParent, | 84 void inheritFrom(const ComputedStyleBase& inheritParent, |
| 91 IsAtShadowBoundary isAtShadowBoundary = NotAtShadowBoundary); | 85 IsAtShadowBoundary isAtShadowBoundary = NotAtShadowBoundary); |
| 92 | 86 |
| 93 void copyNonInheritedFromCached(const ComputedStyleBase& other); | 87 void copyNonInheritedFromCached(const ComputedStyleBase& other); |
| 94 | 88 |
| 95 // Copies the values of any independent inherited properties from the parent | 89 // Copies the values of any independent inherited properties from the parent |
| (...skipping 30 matching lines...) Expand all Loading... |
| 126 protected: | 120 protected: |
| 127 // Storage. | 121 // Storage. |
| 128 {% for field in fields %} | 122 {% for field in fields %} |
| 129 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} | 123 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} |
| 130 {% endfor %} | 124 {% endfor %} |
| 131 }; | 125 }; |
| 132 | 126 |
| 133 } // namespace blink | 127 } // namespace blink |
| 134 | 128 |
| 135 #endif // ComputedStyleBase_h | 129 #endif // ComputedStyleBase_h |
| OLD | NEW |