Bug 1073336 part 13 - Add AnimationPlayer::PostUpdate; r=dbaron

Adds a method for notifying the collection of changes to one of its players.
This commit is contained in:
Brian Birtles 2014-11-17 13:45:59 +09:00
Родитель d855c6692f
Коммит 49dee50d8c
2 изменённых файлов: 10 добавлений и 0 удалений

Просмотреть файл

@ -236,6 +236,15 @@ AnimationPlayer::MaybePostRestyle() const
nsChangeHint_AllReflowHints);
}
void
AnimationPlayer::PostUpdate()
{
AnimationPlayerCollection* collection = GetCollection();
if (collection) {
collection->NotifyPlayerUpdated();
}
}
StickyTimeDuration
AnimationPlayer::SourceContentEnd() const
{

Просмотреть файл

@ -128,6 +128,7 @@ public:
protected:
void FlushStyle() const;
void MaybePostRestyle() const;
void PostUpdate();
StickyTimeDuration SourceContentEnd() const;
nsIDocument* GetRenderedDocument() const;