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

Unified Diff: third_party/WebKit/Source/core/html/track/VideoTrack.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/html/track/VideoTrack.cpp
diff --git a/third_party/WebKit/Source/core/html/track/VideoTrack.cpp b/third_party/WebKit/Source/core/html/track/VideoTrack.cpp
index 394ced2dfb849985a41b5fc53243e182700bccd8..a4fe4d8b3a97fffd9471b26dc742735872a87c84 100644
--- a/third_party/WebKit/Source/core/html/track/VideoTrack.cpp
+++ b/third_party/WebKit/Source/core/html/track/VideoTrack.cpp
@@ -39,37 +39,37 @@ void VideoTrack::setSelected(bool selected)
const AtomicString& VideoTrack::alternativeKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("alternative", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("alternative"));
return keyword;
}
const AtomicString& VideoTrack::captionsKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("captions", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("captions"));
return keyword;
}
const AtomicString& VideoTrack::mainKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("main", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("main"));
return keyword;
}
const AtomicString& VideoTrack::signKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("sign", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("sign"));
return keyword;
}
const AtomicString& VideoTrack::subtitlesKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("subtitles", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("subtitles"));
return keyword;
}
const AtomicString& VideoTrack::commentaryKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("commentary", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, keyword, ("commentary"));
return keyword;
}

Powered by Google App Engine
This is Rietveld 408576698