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

Unified Diff: third_party/WebKit/Source/wtf/text/StringStatics.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/wtf/text/StringStatics.cpp
diff --git a/third_party/WebKit/Source/wtf/text/StringStatics.cpp b/third_party/WebKit/Source/wtf/text/StringStatics.cpp
index 34d118d213758fca91ead1fbaf49e2165109f55c..e6884e0b6c6d2407169322f5cf4e7916a09557a1 100644
--- a/third_party/WebKit/Source/wtf/text/StringStatics.cpp
+++ b/third_party/WebKit/Source/wtf/text/StringStatics.cpp
@@ -90,7 +90,7 @@ void StringStatics::init()
ASSERT(isMainThread());
// FIXME: These should be allocated at compile time.
- new (NotNull, (void*)&starAtom) AtomicString("*", AtomicString::ConstructFromLiteral);
+ new (NotNull, (void*)&starAtom) AtomicString("*");
new (NotNull, (void*)&xmlAtom) AtomicString(addStaticASCIILiteral("xml"));
new (NotNull, (void*)&xmlnsAtom) AtomicString(addStaticASCIILiteral("xmlns"));
new (NotNull, (void*)&xlinkAtom) AtomicString(addStaticASCIILiteral("xlink"));

Powered by Google App Engine
This is Rietveld 408576698