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

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

Issue 2921543002: Make ComputedStyleBase use MemberCopy when copying pointer fields. (Closed)
Patch Set: Rebase Created 3 years, 6 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
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 956b9747f5a3f55a015812f9512799ba6ef8df46..92d246cd43dc3b7debef847eb4ea102bc0a2c489 100644
--- a/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/fields/group.tmpl
@@ -32,7 +32,11 @@ class {{group.type_name}} : public RefCounted<{{group.type_name}}> {
{{group.type_name}}(const {{group.type_name}}& other) :
{% for field in group.fields %}
+ {% if field.wrapper_pointer_name %}
+ {{field.name}}(MemberCopy(other.{{field.name}})){{print_if(not loop.last, ',')}}
+ {% else %}
{{field.name}}(other.{{field.name}}){{print_if(not loop.last, ',')}}
+ {% endif %}
{% endfor %}
{}
};

Powered by Google App Engine
This is Rietveld 408576698