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

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

Issue 2187493004: Add a generated ComputedStyleBase class that ComputedStyle extends (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@_make_visibility_enum_class_rebase
Patch Set: Re-ordered inheritance to match initializers 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
(Empty)
1 {% from 'macros.tmpl' import license %}
2 {{license()}}
3
4 #include "core/ComputedStyleBase.h"
5
6 namespace blink {
7
8 void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent, IsAt ShadowBoundary isAtShadowBoundary)
9 {
10 {% for field in fields if field.property['inherited'] %}
11 {{field.name}} = inheritParent.{{field.name}};
12 {% endfor %}
13 }
14
15 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698