Bug 1195180 part 2 - Make DocumentTimeline inherit from nsARefreshObserver; r=heycam

This commit is contained in:
Brian Birtles 2015-09-28 12:38:40 +09:00
Родитель 534ef7e86c
Коммит a12e08d26e
2 изменённых файлов: 11 добавлений и 1 удалений

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

@ -91,6 +91,11 @@ DocumentTimeline::ToTimelineTime(const TimeStamp& aTimeStamp) const
return result;
}
void
DocumentTimeline::WillRefresh(mozilla::TimeStamp aTime)
{
}
TimeStamp
DocumentTimeline::ToTimeStamp(const TimeDuration& aTimeDuration) const
{

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

@ -17,7 +17,9 @@ struct JSContext;
namespace mozilla {
namespace dom {
class DocumentTimeline final : public AnimationTimeline
class DocumentTimeline final
: public AnimationTimeline
, public nsARefreshObserver
{
public:
explicit DocumentTimeline(nsIDocument* aDocument)
@ -50,6 +52,9 @@ public:
override;
TimeStamp ToTimeStamp(const TimeDuration& aTimelineTime) const override;
// nsARefreshObserver methods
void WillRefresh(TimeStamp aTime) override;
protected:
TimeStamp GetCurrentTimeStamp() const;
nsRefreshDriver* GetRefreshDriver() const;