зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1195180 part 2 - Make DocumentTimeline inherit from nsARefreshObserver; r=heycam
This commit is contained in:
Родитель
534ef7e86c
Коммит
a12e08d26e
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче