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

Unified Diff: Source/core/html/HTMLAudioElement.cpp

Issue 36863002: Remove redundant scheduleDelayedAction in Audio constructor (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/html/HTMLAudioElement.cpp
diff --git a/Source/core/html/HTMLAudioElement.cpp b/Source/core/html/HTMLAudioElement.cpp
index c83650a247b9b38440c5b972e510d72378f19327..e30c85a9b20ec029544d0f0a6fe55e8627678b1d 100644
--- a/Source/core/html/HTMLAudioElement.cpp
+++ b/Source/core/html/HTMLAudioElement.cpp
@@ -50,10 +50,8 @@ PassRefPtr<HTMLAudioElement> HTMLAudioElement::createForJSConstructor(Document&
{
RefPtr<HTMLAudioElement> audio = adoptRef(new HTMLAudioElement(audioTag, document, false));
audio->setPreload("auto");
- if (!src.isNull()) {
+ if (!src.isNull())
audio->setSrc(src);
- audio->scheduleDelayedAction(HTMLMediaElement::LoadMediaResource);
- }
audio->suspendIfNeeded();
return audio.release();
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698