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

Unified Diff: Source/core/css/CSSPrimitiveValue.cpp

Issue 1090423007: Serialize <string> with double quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 5 years, 8 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 | « LayoutTests/http/tests/misc/extract-http-content-language-multiple-expected.txt ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSPrimitiveValue.cpp
diff --git a/Source/core/css/CSSPrimitiveValue.cpp b/Source/core/css/CSSPrimitiveValue.cpp
index 60b83526c917d22055691e2bc2febfba2c2f4563..2f4e6e04417ecb97a90cb7fb09ef558e24f34190 100644
--- a/Source/core/css/CSSPrimitiveValue.cpp
+++ b/Source/core/css/CSSPrimitiveValue.cpp
@@ -1062,9 +1062,12 @@ String CSSPrimitiveValue::customCSSText() const
case CSS_CUSTOM_IDENT:
text = quoteCSSStringIfNeeded(m_value.string);
break;
- case CSS_STRING:
- text = quoteCSSString(m_value.string);
+ case CSS_STRING: {
+ StringBuilder result;
+ serializeString(m_value.string, result);
+ text = result.toString();
break;
+ }
case CSS_URI:
text = "url(" + quoteCSSURLIfNeeded(m_value.string) + ")";
break;
« no previous file with comments | « LayoutTests/http/tests/misc/extract-http-content-language-multiple-expected.txt ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698