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

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

Issue 1192983003: CSS Custom Properties (Variables) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: ToTed Created 5 years, 4 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: Source/build/scripts/templates/StyleBuilder.cpp.tmpl
diff --git a/Source/build/scripts/templates/StyleBuilder.cpp.tmpl b/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
index 537baf0b6fbde46856c5466803673ba1d85315a2..3dd0a66e35e697e2b8880e9ab09c09edfbfd3a4e 100644
--- a/Source/build/scripts/templates/StyleBuilder.cpp.tmpl
+++ b/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/08/25 09:21:09 We probably shouldn't get here for 'all', or at le
+ 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