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