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

Unified Diff: Source/core/svg/SVGLangSpace.cpp

Issue 108683002: Use xmlAtom / starAtom when possible instead of string literals (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years 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/fetch/CrossOriginAccessControl.cpp ('k') | Source/core/timing/Performance.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/SVGLangSpace.cpp
diff --git a/Source/core/svg/SVGLangSpace.cpp b/Source/core/svg/SVGLangSpace.cpp
index feba88ee2ebce78bfb5a3b7dd1f1e7a84b882d20..1fe66e029bb8f7e680c01cebac816c0ef6217aa5 100644
--- a/Source/core/svg/SVGLangSpace.cpp
+++ b/Source/core/svg/SVGLangSpace.cpp
@@ -67,15 +67,13 @@ bool SVGLangSpace::isKnownAttribute(const QualifiedName& attrName)
void SVGLangSpace::addSupportedAttributes(HashSet<QualifiedName>& supportedAttributes)
{
- DEFINE_STATIC_LOCAL(AtomicString, xmlPrefix, ("xml", AtomicString::ConstructFromLiteral));
-
QualifiedName langWithPrefix = XMLNames::langAttr;
- langWithPrefix.setPrefix(xmlPrefix);
+ langWithPrefix.setPrefix(xmlAtom);
supportedAttributes.add(langWithPrefix);
supportedAttributes.add(XMLNames::langAttr);
QualifiedName spaceWithPrefix = XMLNames::spaceAttr;
- spaceWithPrefix.setPrefix(xmlPrefix);
+ spaceWithPrefix.setPrefix(xmlAtom);
supportedAttributes.add(spaceWithPrefix);
supportedAttributes.add(XMLNames::spaceAttr);
}
« no previous file with comments | « Source/core/fetch/CrossOriginAccessControl.cpp ('k') | Source/core/timing/Performance.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698