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

Unified Diff: third_party/WebKit/Source/core/css/StylePropertySerializer.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
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
diff --git a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
index bb49fdcb73eba225d796584313a83c89dc14e4c5..3b86029892426898b1b228412e1200b7cff64270 100644
--- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
+++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp
@@ -184,6 +184,8 @@ String StylePropertySerializer::getCustomPropertyText(const PropertyValueForSeri
const CSSCustomPropertyDeclaration* value = toCSSCustomPropertyDeclaration(property.value());
result.append(value->name());
result.append(':');
+ if (!value->value())
+ result.append(' ');
result.append(value->customCSSText());
if (property.isImportant())
result.append(" !important");
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSCustomPropertyDeclaration.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698