Index: Source/WebCore/html/HTMLMediaElement.cpp |
=================================================================== |
--- Source/WebCore/html/HTMLMediaElement.cpp (revision 112902) |
+++ Source/WebCore/html/HTMLMediaElement.cpp (working copy) |
@@ -177,6 +177,7 @@ |
, m_progressEventTimer(this, &HTMLMediaElement::progressEventTimerFired) |
, m_playbackProgressTimer(this, &HTMLMediaElement::playbackProgressTimerFired) |
, m_playedTimeRanges() |
+ , m_asyncEventQueue(GenericEventQueue::create(this)) |
, m_playbackRate(1.0f) |
, m_defaultPlaybackRate(1.0f) |
, m_webkitPreservesPitch(true) |
@@ -541,7 +542,7 @@ |
RefPtr<Event> event = Event::create(eventName, false, true); |
event->setTarget(this); |
- m_asyncEventQueue.enqueueEvent(event.release()); |
+ m_asyncEventQueue->enqueueEvent(event.release()); |
} |
void HTMLMediaElement::loadTimerFired(Timer<HTMLMediaElement>*) |
@@ -1179,7 +1180,7 @@ |
void HTMLMediaElement::cancelPendingEventsAndCallbacks() |
{ |
LOG(Media, "HTMLMediaElement::cancelPendingEventsAndCallbacks"); |
- m_asyncEventQueue.cancelAllEvents(); |
+ m_asyncEventQueue->cancelAllEvents(); |
for (Node* node = firstChild(); node; node = node->nextSibling()) { |
if (node->hasTagName(sourceTag)) |
@@ -3178,7 +3179,7 @@ |
bool HTMLMediaElement::hasPendingActivity() const |
{ |
- return m_asyncEventQueue.hasPendingEvents(); |
+ return m_asyncEventQueue->hasPendingEvents(); |
} |
void HTMLMediaElement::mediaVolumeDidChange() |