Index: third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
diff --git a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
index c7ffb42f74de93c23f30f1f47303fb596e93a064..7f23c2f2cbd373bad4b3d126055abded33162507 100644 |
--- a/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
+++ b/third_party/WebKit/Source/core/css/StylePropertySerializer.cpp |
@@ -185,7 +185,7 @@ |
result.append(':'); |
result.append(value->customCSSText()); |
if (property.isImportant()) |
- result.append(" !important"); |
+ result.appendLiteral(" !important"); |
result.append(';'); |
return result.toString(); |
} |
@@ -195,7 +195,7 @@ |
StringBuilder result; |
if (isNotFirstDecl) |
result.append(' '); |
- result.append("@apply "); |
+ result.appendLiteral("@apply "); |
result.append(toCSSCustomIdentValue(value)->value()); |
result.append(';'); |
return result.toString(); |
@@ -207,10 +207,10 @@ |
if (isNotFirstDecl) |
result.append(' '); |
result.append(getPropertyName(propertyID)); |
- result.append(": "); |
+ result.appendLiteral(": "); |
result.append(value); |
if (isImportant) |
- result.append(" !important"); |
+ result.appendLiteral(" !important"); |
result.append(';'); |
return result.toString(); |
} |
@@ -742,9 +742,9 @@ |
if (!(value->isInitialValue() && toCSSInitialValue(value)->isImplicit())) { |
if (property == CSSPropertyBackgroundSize || property == CSSPropertyWebkitMaskSize) { |
if (foundPositionYCSSProperty || foundPositionXCSSProperty) |
- layerResult.append(" / "); |
+ layerResult.appendLiteral(" / "); |
else |
- layerResult.append(" 0% 0% / "); |
+ layerResult.appendLiteral(" 0% 0% / "); |
} else if (!layerResult.isEmpty()) { |
// Do this second to avoid ending up with an extra space in the output if we hit the continue above. |
layerResult.append(' '); |
@@ -772,7 +772,7 @@ |
} |
if (!layerResult.isEmpty()) { |
if (!result.isEmpty()) |
- result.append(", "); |
+ result.appendLiteral(", "); |
result.append(layerResult); |
} |
} |
@@ -839,12 +839,12 @@ |
if (repeatXValueId == repeatYValueId) { |
builder.append(repeatX.cssText()); |
} else if (repeatXValueId == CSSValueNoRepeat && repeatYValueId == CSSValueRepeat) { |
- builder.append("repeat-y"); |
+ builder.appendLiteral("repeat-y"); |
} else if (repeatXValueId == CSSValueRepeat && repeatYValueId == CSSValueNoRepeat) { |
- builder.append("repeat-x"); |
+ builder.appendLiteral("repeat-x"); |
} else { |
builder.append(repeatX.cssText()); |
- builder.append(" "); |
+ builder.appendLiteral(" "); |
builder.append(repeatY.cssText()); |
} |
} |
@@ -876,7 +876,7 @@ |
StringBuilder builder; |
for (size_t i = 0; i < shorthandLength; ++i) { |
if (i) |
- builder.append(", "); |
+ builder.appendLiteral(", "); |
const CSSValue* xValue = repeatXList ? repeatXList->item(i % repeatXList->length()) : repeatX; |
const CSSValue* yValue = repeatYList ? repeatYList->item(i % repeatYList->length()) : repeatY; |