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

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

Issue 2718323002: Minor tweak to ComputedStyleBase.h.tmpl formatting (Closed)
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
index ef2ec6fc8fbd106cb9dad06671c574a7a35bb00c..ee5553b05ef66cb502fc93894463abb839c190f0 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.h.tmpl
@@ -36,45 +36,45 @@ class CORE_EXPORT ComputedStyleBase {
{}
bool operator==(const ComputedStyleBase& o) const {
- return true &&
+ return (
{% for field in fields %}
{{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
{% endfor %}
- ;
+ );
}
bool operator!=(const ComputedStyleBase& o) const { return !(*this == o); }
inline bool inheritedEqual(const ComputedStyleBase& o) const {
- return true &&
+ return (
{% for field in fields if field.is_property and field.is_inherited %}
{{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
{% endfor %}
- ;
+ );
}
inline bool independentInheritedEqual(const ComputedStyleBase& o) const {
- return true &&
+ return (
{% for field in fields if field.is_property and field.is_inherited and field.is_independent %}
{{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
{% endfor %}
- ;
+ );
}
inline bool nonIndependentInheritedEqual(const ComputedStyleBase& o) const {
- return true &&
+ return (
{% for field in fields if field.is_property and field.is_inherited and not field.is_independent %}
{{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
{% endfor %}
- ;
+ );
}
inline bool nonInheritedEqual(const ComputedStyleBase& o) const {
- return true &&
+ return (
{% for field in fields if field.is_property and not field.is_inherited %}
{{field.name}} == o.{{field.name}}{{print_if(not loop.last, ' &&')}}
{% endfor %}
- ;
+ );
}
enum IsAtShadowBoundary {
« 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