Chromium Code Reviews| Index: Source/core/css/StylePropertySerializer.cpp |
| diff --git a/Source/core/css/StylePropertySerializer.cpp b/Source/core/css/StylePropertySerializer.cpp |
| index c132da45ddbc2c6dbeede66d8e29d865555f4c19..316622a59d5ff04ca3ef5796ffa9f90e5f7b3012 100644 |
| --- a/Source/core/css/StylePropertySerializer.cpp |
| +++ b/Source/core/css/StylePropertySerializer.cpp |
| @@ -86,6 +86,10 @@ String StylePropertySerializer::asText() const |
| case CSSPropertyBackgroundRepeatY: |
| repeatYPropertyIndex = n; |
| continue; |
| + case CSSPropertyContent: |
| + if (property.value()->isValueList()) |
| + value = toCSSValueList(property.value())->customCssText(true); |
|
dominicc (has gone to gerrit)
2013/06/11 01:32:46
Would you consider using an enum instead of a bool
tasak
2013/06/11 11:29:14
Sure. Done.
|
| + break; |
| case CSSPropertyBorderTopWidth: |
| case CSSPropertyBorderRightWidth: |
| case CSSPropertyBorderBottomWidth: |
| @@ -215,8 +219,10 @@ String StylePropertySerializer::asText() const |
| } |
| if (!value.isNull()) { |
| - propertyID = shorthandPropertyID; |
| - shorthandPropertyUsed.set(shortPropertyIndex); |
| + if (shorthandPropertyID) { |
| + propertyID = shorthandPropertyID; |
| + shorthandPropertyUsed.set(shortPropertyIndex); |
| + } |
| } else |
| value = property.value()->cssText(); |