Chromium Code Reviews| 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 |
|
sashab
2016/09/22 06:00:42
// Copyright (c) 2014 The Chromium Authors. All ri
|