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

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

Issue 482753002: Use StringBuilder::appendLiteral() / StringBuilder::append(char) when possible (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSImageSetValue.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/CSSFilterValue.cpp
diff --git a/Source/core/css/CSSFilterValue.cpp b/Source/core/css/CSSFilterValue.cpp
index b5369cdd6add8cf07c28e9ed4cea9bc6fe5b1367..74e5d3435c12fde8c337aed637efd12064627834 100644
--- a/Source/core/css/CSSFilterValue.cpp
+++ b/Source/core/css/CSSFilterValue.cpp
@@ -41,37 +41,37 @@ String CSSFilterValue::customCSSText() const
StringBuilder result;
switch (m_type) {
case ReferenceFilterOperation:
- result.append("url(");
+ result.appendLiteral("url(");
break;
case GrayscaleFilterOperation:
- result.append("grayscale(");
+ result.appendLiteral("grayscale(");
break;
case SepiaFilterOperation:
- result.append("sepia(");
+ result.appendLiteral("sepia(");
break;
case SaturateFilterOperation:
- result.append("saturate(");
+ result.appendLiteral("saturate(");
break;
case HueRotateFilterOperation:
- result.append("hue-rotate(");
+ result.appendLiteral("hue-rotate(");
break;
case InvertFilterOperation:
- result.append("invert(");
+ result.appendLiteral("invert(");
break;
case OpacityFilterOperation:
- result.append("opacity(");
+ result.appendLiteral("opacity(");
break;
case BrightnessFilterOperation:
- result.append("brightness(");
+ result.appendLiteral("brightness(");
break;
case ContrastFilterOperation:
- result.append("contrast(");
+ result.appendLiteral("contrast(");
break;
case BlurFilterOperation:
- result.append("blur(");
+ result.appendLiteral("blur(");
break;
case DropShadowFilterOperation:
- result.append("drop-shadow(");
+ result.appendLiteral("drop-shadow(");
break;
default:
break;
« no previous file with comments | « Source/core/css/CSSComputedStyleDeclaration.cpp ('k') | Source/core/css/CSSImageSetValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698