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

Unified Diff: third_party/WebKit/Source/core/css/CSSValue.cpp

Issue 1405293012: [Variables] Enable get/setProperty and similar APIs from the CSSOM (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use static_assert. Created 5 years, 1 month 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/CSSValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSValue.cpp b/third_party/WebKit/Source/core/css/CSSValue.cpp
index dcc6bd14b2331aeddf7a30a78caa19cb5f9f8d11..462a56035770413d8a5d1fe2671805dae09e1770 100644
--- a/third_party/WebKit/Source/core/css/CSSValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSValue.cpp
@@ -261,8 +261,7 @@ String CSSValue::cssText() const
case VariableReferenceClass:
return toCSSVariableReferenceValue(this)->customCSSText();
case CustomPropertyDeclarationClass:
- // TODO(leviw): We don't allow custom properties in CSSOM yet
- ASSERT_NOT_REACHED();
+ return toCSSCustomPropertyDeclaration(this)->customCSSText();
}
ASSERT_NOT_REACHED();
return String();

Powered by Google App Engine
This is Rietveld 408576698