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

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

Issue 2188343002: Fix serialization of css-wide keywords in custom properties (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments Created 4 years, 5 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/CSSCustomPropertyDeclaration.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp b/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
index 5b44fee20ebffc50339db4b7f3b6e5e580e76700..a564bde31eb39f8aed33d4fa46cf347424c1f4ed 100644
--- a/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
@@ -17,7 +17,8 @@ String CSSCustomPropertyDeclaration::customCSSText() const
{
if (m_value)
return m_value->tokenRange().serialize();
- return emptyString();
+ DCHECK(m_valueId != CSSValueInternalVariableValue);
+ return getValueName(m_valueId);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698