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

Side by Side 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, 2 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
OLDNEW
1 {% from 'macros.tmpl' import license %} 1 {% from 'macros.tmpl' import license %}
2 {{license()}} 2 {{license()}}
3 3
4 #include "core/ComputedStyleBase.h" 4 #include "core/ComputedStyleBase.h"
5 5
6 namespace blink { 6 namespace blink {
7 7
8 void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent, IsAt ShadowBoundary isAtShadowBoundary) 8 void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent, IsAt ShadowBoundary isAtShadowBoundary)
9 { 9 {
10 {% for field in fields if field.property['inherited'] %} 10 {% for field in fields if field.property['inherited'] %}
11 {{field.name}} = inheritParent.{{field.name}}; 11 {{field.name}} = inheritParent.{{field.name}};
12 {% endfor %} 12 {% endfor %}
13 } 13 }
14 14
15 void ComputedStyleBase::copyNonInheritedFromCached(const ComputedStyleBase& othe r)
16 {
17 {% for field in fields if not field.property['inherited'] %}
18 {{field.name}} = other.{{field.name}};
19 {% endfor %}
20 }
21
15 } // namespace blink 22 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698