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

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

Issue 2351993002: Added support for non-inherited flags in ComputedStyleBase (Closed)
Patch Set: Rebase Created 4 years, 3 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/ComputedStyleBase.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
index d73b9934519171e844f58849cb63c79acbd2bbd1..d3ac50f4ad75b122f84a360c98791882918d8fe8 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
@@ -12,4 +12,11 @@ void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent, IsAt
{% endfor %}
}
+void ComputedStyleBase::copyNonInheritedFromCached(const ComputedStyleBase& other)
+{
+ {% for field in fields if not field.property['inherited'] %}
+ {{field.name}} = other.{{field.name}};
+ {% endfor %}
+}
+
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698