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

Unified Diff: third_party/WebKit/Source/core/html/HTMLAudioElement.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/HTMLAudioElement.cpp
diff --git a/third_party/WebKit/Source/core/html/HTMLAudioElement.cpp b/third_party/WebKit/Source/core/html/HTMLAudioElement.cpp
index cc2922c0dab0b972bd1f5ac58e01350f6a553320..b9007bca02902a91e1cb0e964686dd5184c30864 100644
--- a/third_party/WebKit/Source/core/html/HTMLAudioElement.cpp
+++ b/third_party/WebKit/Source/core/html/HTMLAudioElement.cpp
@@ -49,7 +49,7 @@ PassRefPtrWillBeRawPtr<HTMLAudioElement> HTMLAudioElement::createForJSConstructo
{
RefPtrWillBeRawPtr<HTMLAudioElement> audio = adoptRefWillBeNoop(new HTMLAudioElement(document));
audio->ensureUserAgentShadowRoot();
- audio->setPreload(AtomicString("auto", AtomicString::ConstructFromLiteral));
+ audio->setPreload(AtomicString("auto"));
if (!src.isNull())
audio->setSrc(src);
audio->suspendIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698