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

Unified Diff: third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp

Issue 2288633002: Recognise variable names when parsing CSS property names (Closed)
Patch Set: fix long var names Created 4 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: third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp
diff --git a/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp b/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp
index c82875cb07b2c0a79ac120fa478163461b4ebfed..64452da2d77fcc5b7c3eb4f04488091d487ac31d 100644
--- a/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp
+++ b/third_party/WebKit/Source/core/css/cssom/CSSStyleValue.cpp
@@ -21,7 +21,8 @@ ScriptValue CSSStyleValue::parse(ScriptState* scriptState, const String& propert
}
CSSPropertyID propertyID = cssPropertyID(propertyName);
- if (propertyID == CSSPropertyInvalid) {
+ // TODO(timloh): Handle custom properties
+ if (propertyID == CSSPropertyInvalid || propertyID == CSSPropertyVariable) {
exceptionState.throwTypeError("Invalid property name");
return ScriptValue::createNull(scriptState);
}

Powered by Google App Engine
This is Rietveld 408576698