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

Unified Diff: third_party/WebKit/Source/core/dom/MutationRecord.cpp

Issue 1844223002: Literal AtomicString construction can rely on strlen optimization. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/dom/MutationRecord.cpp
diff --git a/third_party/WebKit/Source/core/dom/MutationRecord.cpp b/third_party/WebKit/Source/core/dom/MutationRecord.cpp
index 386df23fa2496163fda993994ed91b9a3b13c9c0..a9968b29204d027c54df1df6e75f9f4d23db7c55 100644
--- a/third_party/WebKit/Source/core/dom/MutationRecord.cpp
+++ b/third_party/WebKit/Source/core/dom/MutationRecord.cpp
@@ -170,19 +170,19 @@ private:
const AtomicString& ChildListRecord::type()
{
- DEFINE_STATIC_LOCAL(AtomicString, childList, ("childList", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, childList, ("childList"));
return childList;
}
const AtomicString& AttributesRecord::type()
{
- DEFINE_STATIC_LOCAL(AtomicString, attributes, ("attributes", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, attributes, ("attributes"));
return attributes;
}
const AtomicString& CharacterDataRecord::type()
{
- DEFINE_STATIC_LOCAL(AtomicString, characterData, ("characterData", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(AtomicString, characterData, ("characterData"));
return characterData;
}

Powered by Google App Engine
This is Rietveld 408576698