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

Unified Diff: Source/platform/animation/TimingFunction.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/platform/UUID.cpp ('k') | Source/platform/graphics/Color.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/animation/TimingFunction.cpp
diff --git a/Source/platform/animation/TimingFunction.cpp b/Source/platform/animation/TimingFunction.cpp
index 69f427f21aa018e5e777d1a3dd7054e788da712c..e0ebc48f0a33ca9c15a23afe908cc11911194ec2 100644
--- a/Source/platform/animation/TimingFunction.cpp
+++ b/Source/platform/animation/TimingFunction.cpp
@@ -125,15 +125,15 @@ String StepsTimingFunction::toString() const
builder.append("steps(" + String::numberToStringECMAScript(this->numberOfSteps()) + ", ");
if (this->stepAtPosition() == StepsTimingFunction::StepAtStart)
- builder.append("start");
+ builder.appendLiteral("start");
else if (this->stepAtPosition() == StepsTimingFunction::StepAtMiddle)
- builder.append("middle");
+ builder.appendLiteral("middle");
else if (this->stepAtPosition() == StepsTimingFunction::StepAtEnd)
- builder.append("end");
+ builder.appendLiteral("end");
else
ASSERT_NOT_REACHED();
- builder.append(")");
+ builder.append(')');
break;
default:
ASSERT_NOT_REACHED();
« no previous file with comments | « Source/platform/UUID.cpp ('k') | Source/platform/graphics/Color.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698