HTMLMediaElement::resume() should schedule a load rather than load immediately
authoryoli@rim.com <yoli@rim.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 22:31:48 +0000 (22:31 +0000)
committeryoli@rim.com <yoli@rim.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 10 Jan 2013 22:31:48 +0000 (22:31 +0000)
commit4ffbd1de1605d0bf2474b278e99809bb1815c1ac
treee6dc626b1a27b1151608d08a6bd9f2e5860d8910
parenta429447120eb8111da53ed8b7cc30b47112742a1
HTMLMediaElement::resume() should schedule a load rather than load immediately
https://bugs.webkit.org/show_bug.cgi?id=106587

Reviewed by Eric Carlson.

It is not always safe to start the jobs at the time resume() is called. That is why the jobs are
suspended. It can also be suspended again right after being resumed.

No new tests as there is no visible functional change, also it is a theoretically good-to-have change
that doesn't fix any known cross-platform issue.

* html/HTMLMediaElement.cpp:
(WebCore::HTMLMediaElement::resume): Replace load() with scheduleLoad().

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@139371 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/html/HTMLMediaElement.cpp