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

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

Issue 2554243002: Removed property object from make_computed_style_base.py templates (Closed)
Patch Set: Rebase Created 4 years 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 33c74d4eb4d2cdaa04e01813b0f7ec248c27ee6c..14e1da356a4f262bbbae012c4a95190671f03a15 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ComputedStyleBase.cpp.tmpl
@@ -7,21 +7,21 @@ namespace blink {
void ComputedStyleBase::inheritFrom(const ComputedStyleBase& inheritParent,
IsAtShadowBoundary isAtShadowBoundary) {
- {% for field in fields if field.is_enum and field.property['inherited'] %}
+ {% for field in fields if field.is_enum and field.is_inherited %}
{{field.name}} = inheritParent.{{field.name}};
{% endfor %}
}
void ComputedStyleBase::copyNonInheritedFromCached(
const ComputedStyleBase& other) {
- {% for field in fields if (field.is_enum and not field.property['inherited']) or field.is_inherited_flag %}
+ {% for field in fields if (field.is_enum and not field.is_inherited) or field.is_inherited_flag %}
{{field.name}} = other.{{field.name}};
{% endfor %}
}
void ComputedStyleBase::propagateIndependentInheritedProperties(
const ComputedStyleBase& parentStyle) {
- {% for field in fields if field.is_enum and field.property['independent'] %}
+ {% for field in fields if field.is_enum and field.is_independent %}
if ({{field.is_inherited_method_name}}())
{{field.setter_method_name}}(parentStyle.{{field.getter_method_name}}());
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698