From 49dee50d8c015fdbbcf412dcd1767c68bd1cbdd1 Mon Sep 17 00:00:00 2001 From: Brian Birtles Date: Mon, 17 Nov 2014 13:45:59 +0900 Subject: [PATCH] Bug 1073336 part 13 - Add AnimationPlayer::PostUpdate; r=dbaron Adds a method for notifying the collection of changes to one of its players. --- dom/animation/AnimationPlayer.cpp | 9 +++++++++ dom/animation/AnimationPlayer.h | 1 + 2 files changed, 10 insertions(+) diff --git a/dom/animation/AnimationPlayer.cpp b/dom/animation/AnimationPlayer.cpp index 16c8598d2094..fd824c81d4d1 100644 --- a/dom/animation/AnimationPlayer.cpp +++ b/dom/animation/AnimationPlayer.cpp @@ -236,6 +236,15 @@ AnimationPlayer::MaybePostRestyle() const nsChangeHint_AllReflowHints); } +void +AnimationPlayer::PostUpdate() +{ + AnimationPlayerCollection* collection = GetCollection(); + if (collection) { + collection->NotifyPlayerUpdated(); + } +} + StickyTimeDuration AnimationPlayer::SourceContentEnd() const { diff --git a/dom/animation/AnimationPlayer.h b/dom/animation/AnimationPlayer.h index 4e8c13013424..9de1c1bbc639 100644 --- a/dom/animation/AnimationPlayer.h +++ b/dom/animation/AnimationPlayer.h @@ -128,6 +128,7 @@ public: protected: void FlushStyle() const; void MaybePostRestyle() const; + void PostUpdate(); StickyTimeDuration SourceContentEnd() const; nsIDocument* GetRenderedDocument() const; -- 2.11.4.GIT