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

Unified Diff: third_party/WebKit/Source/core/html/track/TextTrack.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/TextTrack.cpp
diff --git a/third_party/WebKit/Source/core/html/track/TextTrack.cpp b/third_party/WebKit/Source/core/html/track/TextTrack.cpp
index 9cdcaf28748dca09798bd643ca72a4c90348001d..341a4ec7df4add1704bb83151b555593c427ea90 100644
--- a/third_party/WebKit/Source/core/html/track/TextTrack.cpp
+++ b/third_party/WebKit/Source/core/html/track/TextTrack.cpp
@@ -48,49 +48,49 @@ static const int invalidTrackIndex = -1;
const AtomicString& TextTrack::subtitlesKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, subtitles, ("subtitles", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, subtitles, ("subtitles"));
return subtitles;
}
const AtomicString& TextTrack::captionsKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, captions, ("captions", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, captions, ("captions"));
return captions;
}
const AtomicString& TextTrack::descriptionsKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, descriptions, ("descriptions", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, descriptions, ("descriptions"));
return descriptions;
}
const AtomicString& TextTrack::chaptersKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, chapters, ("chapters", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, chapters, ("chapters"));
return chapters;
}
const AtomicString& TextTrack::metadataKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, metadata, ("metadata", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, metadata, ("metadata"));
return metadata;
}
const AtomicString& TextTrack::disabledKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, open, ("disabled", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, open, ("disabled"));
return open;
}
const AtomicString& TextTrack::hiddenKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, closed, ("hidden", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, closed, ("hidden"));
return closed;
}
const AtomicString& TextTrack::showingKeyword()
{
- DEFINE_STATIC_LOCAL(const AtomicString, ended, ("showing", AtomicString::ConstructFromLiteral));
+ DEFINE_STATIC_LOCAL(const AtomicString, ended, ("showing"));
return ended;
}

Powered by Google App Engine
This is Rietveld 408576698