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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl

Issue 2911373002: Explicitly generate ComputedStyleBase subgroup copy constructors. (Closed)
Patch Set: Created 3 years, 7 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/fields/group.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl b/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
index 56d3f9db36dc79e88c04503199e9e0cd1cea6d1a..956b9747f5a3f55a015812f9512799ba6ef8df46 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
@@ -1,7 +1,7 @@
{% from 'fields/field.tmpl' import encode, declare_storage, compare %}
{% from 'macros.tmpl' import print_if %}
{% macro define_field_group_class(group): -%}
-class {{group.type_name}} : public RefCountedCopyable<{{group.type_name}}> {
+class {{group.type_name}} : public RefCounted<{{group.type_name}}> {
public:
static PassRefPtr<{{group.type_name}}> Create() {
return AdoptRef(new {{group.type_name}});
@@ -30,6 +30,10 @@ class {{group.type_name}} : public RefCountedCopyable<{{group.type_name}}> {
{% endfor %}
{}
- {{group.type_name}}(const {{group.type_name}}&) = default;
+ {{group.type_name}}(const {{group.type_name}}& other) :
+ {% for field in group.fields %}
+ {{field.name}}(other.{{field.name}}){{print_if(not loop.last, ',')}}
+ {% endfor %}
+ {}
};
{%- endmacro %}
« 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