| Index: Source/core/css/CSSPrimitiveValue.cpp
|
| diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
|
| index ddcf81afac82148472227faa66ed9b702cd1e016..f1d9418bcbf847edb39afd23f59308687c65b513 100644
|
| --- a/Source/core/css/CSSPrimitiveValue.cpp
|
| +++ b/Source/core/css/CSSPrimitiveValue.cpp
|
| @@ -860,7 +860,7 @@ ALWAYS_INLINE static String formatNumber(double number, const char (&characters)
|
| return formatNumber(number, characters, characterCount - 1);
|
| }
|
|
|
| -String CSSPrimitiveValue::customCssText() const
|
| +String CSSPrimitiveValue::customCssText(CssTextFormattingFlags formattingFlag) const
|
| {
|
| // FIXME: return the original value instead of a generated one (e.g. color
|
| // name if it was specified) - check what spec says about this
|
| @@ -949,7 +949,7 @@ String CSSPrimitiveValue::customCssText() const
|
| text = m_value.string;
|
| break;
|
| case CSS_STRING:
|
| - text = quoteCSSStringIfNeeded(m_value.string);
|
| + text = formattingFlag == AlwaysQuoteCSSString ? quoteCSSString(m_value.string) : quoteCSSStringIfNeeded(m_value.string);
|
| break;
|
| case CSS_URI:
|
| text = "url(" + quoteCSSURLIfNeeded(m_value.string) + ")";
|
|
|