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

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: V3 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..09c9dcce4f48c5c3c3dc8af5a75a64ee4fc91b4c 100644
--- a/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp
@@ -17,6 +17,8 @@ String CSSCustomPropertyDeclaration::customCSSText() const
{
if (m_value)
return m_value->tokenRange().serialize();
+ if (m_valueId != CSSValueInternalVariableValue)
+ return getValueName(m_valueId);
return emptyString();
Timothy Loh 2016/07/29 01:15:06 Do we actually get here? Maybe we can just change
rwlbuis 2016/07/29 01:25:17 Right we should not hit it anymore, will add the D
}

Powered by Google App Engine
This is Rietveld 408576698