Chromium Code Reviews| 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..d4e360357eb034b44e2ca6c174ef6da8ba14b954 100644 |
| --- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
| +++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
| @@ -184,7 +184,10 @@ String StylePropertySerializer::getCustomPropertyText(const PropertyValueForSeri |
| const CSSCustomPropertyDeclaration* value = toCSSCustomPropertyDeclaration(property.value()); |
| result.append(value->name()); |
| result.append(':'); |
| - result.append(value->customCSSText()); |
|
Timothy Loh
2016/07/29 01:15:06
I'd rather this line just left as is (looks odd to
rwlbuis
2016/07/29 01:25:17
Well spotted, I had a check on customPropertyValue
|
| + String customPropertyValue = value->customCSSText(); |
| + if (!value->value()) |
| + result.append(' '); |
| + result.append(customPropertyValue); |
| if (property.isImportant()) |
| result.append(" !important"); |
| result.append(';'); |