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

Unified Diff: third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp

Issue 1778743003: Make <custom-ident> not insert quotes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win_chromium_rel_ng Created 4 years, 9 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/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSFontFamilyValue.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp
diff --git a/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp
index f8f4e3a1e4f9a1413000857eafe99085b40e687c..e45e1fc08e0fa120a5ab561405085735aa9f8708 100644
--- a/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp
+++ b/third_party/WebKit/Source/core/css/CSSCustomIdentValue.cpp
@@ -5,6 +5,7 @@
#include "core/css/CSSCustomIdentValue.h"
#include "core/css/CSSMarkup.h"
+#include "wtf/text/StringBuilder.h"
#include "wtf/text/WTFString.h"
namespace blink {
@@ -27,7 +28,9 @@ String CSSCustomIdentValue::customCSSText() const
{
if (isKnownPropertyID())
return getPropertyNameAtomicString(m_propertyId);
- return quoteCSSStringIfNeeded(m_string);
+ StringBuilder builder;
+ serializeIdentifier(m_string, builder);
+ return builder.toString();
}
DEFINE_TRACE_AFTER_DISPATCH(CSSCustomIdentValue)
« no previous file with comments | « third_party/WebKit/Source/core/core.gypi ('k') | third_party/WebKit/Source/core/css/CSSFontFamilyValue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698