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

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

Issue 973623002: Fix serialization of content property to always quote (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add another method Created 5 years, 10 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
Index: Source/core/css/CSSValueList.cpp
diff --git a/Source/core/css/CSSValueList.cpp b/Source/core/css/CSSValueList.cpp
index cb6bd1428ccd8f2eaaeabb87847fbec72773f46a..eb181f646f014e4a1f3cb06a12d654942f0f7b35 100644
--- a/Source/core/css/CSSValueList.cpp
+++ b/Source/core/css/CSSValueList.cpp
@@ -83,7 +83,7 @@ PassRefPtrWillBeRawPtr<CSSValueList> CSSValueList::copy()
return newList.release();
}
-String CSSValueList::customCSSText(CSSTextFormattingFlags formattingFlag) const
+String CSSValueList::customCSSText() const
{
StringBuilder result;
String separator;
@@ -105,10 +105,7 @@ String CSSValueList::customCSSText(CSSTextFormattingFlags formattingFlag) const
for (unsigned i = 0; i < size; i++) {
if (!result.isEmpty())
result.append(separator);
- if (formattingFlag == AlwaysQuoteCSSString && m_values[i]->isPrimitiveValue())
- result.append(toCSSPrimitiveValue(m_values[i].get())->customCSSText(AlwaysQuoteCSSString));
- else
- result.append(m_values[i]->cssText());
+ result.append(m_values[i]->cssText());
}
return result.toString();

Powered by Google App Engine
This is Rietveld 408576698