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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Post-merge Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
index 537baf0b6fbde46856c5466803673ba1d85315a2..3dd0a66e35e697e2b8880e9ab09c09edfbfd3a4e 100644
--- a/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
@@ -29,6 +29,14 @@ void StyleBuilder::applyProperty(CSSPropertyID property, StyleResolverState& sta
return;
{% endfor %}
+ case CSSPropertyVariable:
+ if (isInitial)
+ ASSERT_NOT_REACHED();
+ else if (isInherit)
+ return; // We reach this via the 'all' property, which does not apply to variables
Timothy Loh 2015/09/30 02:09:27 Probably we should update CSSProperty::isAffectedB
+ else
+ StyleBuilderFunctions::applyValueCSSPropertyVariable(state, value);
+ return;
{% for property_id, property in properties.items() if property.direction_aware %}
case {{property_id}}:
{% endfor %}

Powered by Google App Engine
This is Rietveld 408576698