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

Unified Diff: third_party/WebKit/Source/core/animation/css/CSSAnimationData.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/animation/css/CSSAnimationData.cpp
diff --git a/third_party/WebKit/Source/core/animation/css/CSSAnimationData.cpp b/third_party/WebKit/Source/core/animation/css/CSSAnimationData.cpp
index 0c58779312581f70f98793d2e9efe116a8390696..9c170b013367c23f4b727a9671f51ae20e4b2e11 100644
--- a/third_party/WebKit/Source/core/animation/css/CSSAnimationData.cpp
+++ b/third_party/WebKit/Source/core/animation/css/CSSAnimationData.cpp
@@ -29,7 +29,7 @@ CSSAnimationData::CSSAnimationData(const CSSAnimationData& other)
const AtomicString& CSSAnimationData::initialName()
{
- DEFINE_STATIC_LOCAL(const AtomicString, name, ("none", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, name, ("none"));
return name;
}

Powered by Google App Engine
This is Rietveld 408576698