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

Unified Diff: Source/core/editing/MarkupAccumulator.cpp

Issue 22572005: Remove all uses of the ASCIILiteral class. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rm it from wtf Created 7 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/editing/EditorCommand.cpp ('k') | Source/core/editing/SmartReplaceICU.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/MarkupAccumulator.cpp
diff --git a/Source/core/editing/MarkupAccumulator.cpp b/Source/core/editing/MarkupAccumulator.cpp
index 7cb1d56f4e9fb529708dff0525885142ca3afcbd..cd5b7cf853720b2aae48ae7752776f50b440080a 100644
--- a/Source/core/editing/MarkupAccumulator.cpp
+++ b/Source/core/editing/MarkupAccumulator.cpp
@@ -48,11 +48,11 @@ using namespace HTMLNames;
void MarkupAccumulator::appendCharactersReplacingEntities(StringBuilder& result, const String& source, unsigned offset, unsigned length, EntityMask entityMask)
{
- DEFINE_STATIC_LOCAL(const String, ampReference, (ASCIILiteral("&")));
- DEFINE_STATIC_LOCAL(const String, ltReference, (ASCIILiteral("<")));
- DEFINE_STATIC_LOCAL(const String, gtReference, (ASCIILiteral(">")));
- DEFINE_STATIC_LOCAL(const String, quotReference, (ASCIILiteral(""")));
- DEFINE_STATIC_LOCAL(const String, nbspReference, (ASCIILiteral(" ")));
+ DEFINE_STATIC_LOCAL(const String, ampReference, ("&"));
+ DEFINE_STATIC_LOCAL(const String, ltReference, ("<"));
+ DEFINE_STATIC_LOCAL(const String, gtReference, (">"));
+ DEFINE_STATIC_LOCAL(const String, quotReference, ("""));
+ DEFINE_STATIC_LOCAL(const String, nbspReference, (" "));
static const EntityDescription entityMaps[] = {
{ '&', ampReference, EntityAmp },
@@ -256,7 +256,7 @@ bool MarkupAccumulator::shouldAddNamespaceElement(const Element* element)
if (prefix.isEmpty())
return !element->hasAttribute(xmlnsAtom);
- DEFINE_STATIC_LOCAL(String, xmlnsWithColon, (ASCIILiteral("xmlns:")));
+ DEFINE_STATIC_LOCAL(String, xmlnsWithColon, ("xmlns:"));
return !element->hasAttribute(xmlnsWithColon + prefix);
}
« no previous file with comments | « Source/core/editing/EditorCommand.cpp ('k') | Source/core/editing/SmartReplaceICU.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698