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

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

Issue 2736563002: Remove unused equality operator from ComputedStyleBase. (Closed)
Patch Set: Created 3 years, 9 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 | no next file » | 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 17 matching lines...) Expand all
28 {% endfor %} 28 {% endfor %}
29 {} 29 {}
30 ~ComputedStyleBase() {} 30 ~ComputedStyleBase() {}
31 31
32 ALWAYS_INLINE ComputedStyleBase(const ComputedStyleBase& o) : 32 ALWAYS_INLINE ComputedStyleBase(const ComputedStyleBase& o) :
33 {% for field in fields %} 33 {% for field in fields %}
34 {{field.name}}(o.{{field.name}}){{print_if(not loop.last, ',')}} 34 {{field.name}}(o.{{field.name}}){{print_if(not loop.last, ',')}}
35 {% endfor %} 35 {% endfor %}
36 {} 36 {}
37 37
38 bool operator==(const ComputedStyleBase& o) const {
39 return (
40 {% for field in fields %}
41 {{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
42 {% endfor %}
43 );
44 }
45
46 bool operator!=(const ComputedStyleBase& o) const { return !(*this == o); }
47
48 inline bool inheritedEqual(const ComputedStyleBase& o) const { 38 inline bool inheritedEqual(const ComputedStyleBase& o) const {
49 return ( 39 return (
50 {% for field in fields if field.is_property and field.is_inherited %} 40 {% for field in fields if field.is_property and field.is_inherited %}
51 {{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}} 41 {{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
52 {% endfor %} 42 {% endfor %}
53 ); 43 );
54 } 44 }
55 45
56 inline bool independentInheritedEqual(const ComputedStyleBase& o) const { 46 inline bool independentInheritedEqual(const ComputedStyleBase& o) const {
57 return ( 47 return (
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 protected: 110 protected:
121 // Storage. 111 // Storage.
122 {% for field in fields %} 112 {% for field in fields %}
123 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} 113 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}}
124 {% endfor %} 114 {% endfor %}
125 }; 115 };
126 116
127 } // namespace blink 117 } // namespace blink
128 118
129 #endif // ComputedStyleBase_h 119 #endif // ComputedStyleBase_h
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698