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

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

Issue 2744693002: Use default copy constructor for ComputedStyleBase. (Closed)
Patch Set: Rebase 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 {% endfor %} 77 {% endfor %}
78 protected: 78 protected:
79 ALWAYS_INLINE ComputedStyleBase() : 79 ALWAYS_INLINE ComputedStyleBase() :
80 {% for field in fields %} 80 {% for field in fields %}
81 {{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(n ot loop.last, ',')}} 81 {{field.name}}(static_cast<unsigned>({{field.default_value}})){{print_if(n ot loop.last, ',')}}
82 {% endfor %} 82 {% endfor %}
83 {} 83 {}
84 84
85 ~ComputedStyleBase() = default; 85 ~ComputedStyleBase() = default;
86 86
87 ALWAYS_INLINE ComputedStyleBase(const ComputedStyleBase& o) :
88 {% for field in fields %}
89 {{field.name}}(o.{{field.name}}){{print_if(not loop.last, ',')}}
90 {% endfor %}
91 {}
92
93 // Storage. 87 // Storage.
94 {% for field in fields %} 88 {% for field in fields %}
95 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}} 89 unsigned {{field.name}} : {{field.size}}; // {{field.type_name}}
96 {% endfor %} 90 {% endfor %}
97 }; 91 };
98 92
99 } // namespace blink 93 } // namespace blink
100 94
101 #endif // ComputedStyleBase_h 95 #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