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

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: Fix CSSPropertyMetadata::isEnabledProperty 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..d752ce52c3634745fdcf245e2cbc39081bb2426b 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)->value()->tokenRange().serialize();
Timothy Loh 2015/11/14 02:21:05 IMO the serialization logic here should be in CSSC
leviw_travelin_and_unemployed 2015/11/17 01:25:07 Done.
}
ASSERT_NOT_REACHED();
return String();

Powered by Google App Engine
This is Rietveld 408576698