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

Unified Diff: third_party/WebKit/Source/core/svg/SVGParsingError.cpp

Issue 2017053003: Remove StringBuilder::appendLiteral. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase. Created 4 years, 7 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: third_party/WebKit/Source/core/svg/SVGParsingError.cpp
diff --git a/third_party/WebKit/Source/core/svg/SVGParsingError.cpp b/third_party/WebKit/Source/core/svg/SVGParsingError.cpp
index 79215882d288bd36ca964a85b8fb6cb2207693a0..37c0a6ae5ea2d96947ae298db09c3804afd18535 100644
--- a/third_party/WebKit/Source/core/svg/SVGParsingError.cpp
+++ b/third_party/WebKit/Source/core/svg/SVGParsingError.cpp
@@ -19,7 +19,7 @@ void appendErrorContextInfo(StringBuilder& builder, const String& tagName, const
{
builder.append('<');
builder.append(tagName);
- builder.appendLiteral("> attribute ");
+ builder.append("> attribute ");
builder.append(name.toString());
}
@@ -108,10 +108,10 @@ String SVGParsingError::format(const String& tagName, const QualifiedName& name,
StringBuilder builder;
appendErrorContextInfo(builder, tagName, name);
- builder.appendLiteral(": ");
+ builder.append(": ");
if (hasLocus() && locus() == value.length())
- builder.appendLiteral("Unexpected end of attribute. ");
+ builder.append("Unexpected end of attribute. ");
auto message = messageForStatus(status());
builder.append(message.first);

Powered by Google App Engine
This is Rietveld 408576698