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

Unified Diff: Source/core/animation/DocumentTimeline.cpp

Issue 177203009: Web Animations CSS: Dispatch all animation events in the animation frame. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Mark flaky virtual/threaded tests. Created 6 years, 10 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 | « Source/core/animation/DocumentTimeline.h ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/animation/DocumentTimeline.cpp
diff --git a/Source/core/animation/DocumentTimeline.cpp b/Source/core/animation/DocumentTimeline.cpp
index 0f6ef5854cddc64a8ed317ee8fe7fa6ec17cffec..681d9ff382aa2d6f257a5958c0294b4e5f8780cf 100644
--- a/Source/core/animation/DocumentTimeline.cpp
+++ b/Source/core/animation/DocumentTimeline.cpp
@@ -52,7 +52,6 @@ PassRefPtr<DocumentTimeline> DocumentTimeline::create(Document* document, PassOw
DocumentTimeline::DocumentTimeline(Document* document, PassOwnPtr<PlatformTiming> timing)
: m_zeroTime(nullValue())
, m_document(document)
- , m_eventDistpachTimer(this, &DocumentTimeline::eventDispatchTimerFired)
{
if (!timing)
m_timing = adoptPtr(new DocumentTimelineTiming(this));
@@ -161,26 +160,6 @@ void DocumentTimeline::setOutdatedPlayer(Player* player)
m_timing->serviceOnNextFrame();
}
-void DocumentTimeline::dispatchEvents()
-{
- Vector<EventToDispatch> events = m_events;
- m_events.clear();
- for (size_t i = 0; i < events.size(); i++)
- events[i].target->dispatchEvent(events[i].event.release());
-}
-
-void DocumentTimeline::dispatchEventsAsync()
-{
- if (m_events.isEmpty() || m_eventDistpachTimer.isActive())
- return;
- m_eventDistpachTimer.startOneShot(0);
-}
-
-void DocumentTimeline::eventDispatchTimerFired(Timer<DocumentTimeline>*)
-{
- dispatchEvents();
-}
-
size_t DocumentTimeline::numberOfActiveAnimationsForTesting() const
{
if (isNull(m_zeroTime))
« no previous file with comments | « Source/core/animation/DocumentTimeline.h ('k') | Source/core/animation/css/CSSAnimations.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698