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

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

Issue 2699843002: Remove ComputedStyleBase::setBitsDefault(). (Closed)
Patch Set: Address comments Created 3 years, 10 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/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
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
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
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