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

Unified Diff: third_party/WebKit/Source/core/animation/Animation.h

Issue 2948193002: Merge AnimationTimeline and DocumentTimeline (Closed)
Patch Set: Fix rebase error Created 3 years, 6 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 | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/animation/Animation.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/animation/Animation.h
diff --git a/third_party/WebKit/Source/core/animation/Animation.h b/third_party/WebKit/Source/core/animation/Animation.h
index f507056e1673c212fc7d2e3b40aaeb17baf939a5..9190f5eb91927912e8df857430a4327a4b0cd098 100644
--- a/third_party/WebKit/Source/core/animation/Animation.h
+++ b/third_party/WebKit/Source/core/animation/Animation.h
@@ -38,8 +38,8 @@
#include "core/CSSPropertyNames.h"
#include "core/CoreExport.h"
#include "core/animation/AnimationEffectReadOnly.h"
-#include "core/animation/AnimationTimeline.h"
#include "core/animation/CompositorAnimations.h"
+#include "core/animation/DocumentTimeline.h"
#include "core/dom/ContextLifecycleObserver.h"
#include "core/dom/DOMException.h"
#include "core/events/EventTarget.h"
@@ -142,8 +142,8 @@ class CORE_EXPORT Animation final : public EventTargetWithInlineData,
SuperAnimationTimeline* timeline() {
return static_cast<SuperAnimationTimeline*>(timeline_);
}
- const AnimationTimeline* TimelineInternal() const { return timeline_; }
- AnimationTimeline* TimelineInternal() { return timeline_; }
+ const DocumentTimeline* TimelineInternal() const { return timeline_; }
+ DocumentTimeline* TimelineInternal() { return timeline_; }
double CalculateStartTime(double current_time) const;
bool HasStartTime() const { return !IsNull(start_time_); }
@@ -217,7 +217,7 @@ class CORE_EXPORT Animation final : public EventTargetWithInlineData,
RegisteredEventListener&) override;
private:
- Animation(ExecutionContext*, AnimationTimeline&, AnimationEffectReadOnly*);
+ Animation(ExecutionContext*, DocumentTimeline&, AnimationEffectReadOnly*);
void ClearOutdated();
void ForceServiceOnNextFrame();
@@ -268,7 +268,7 @@ class CORE_EXPORT Animation final : public EventTargetWithInlineData,
Member<AnimationPromise> ready_promise_;
Member<AnimationEffectReadOnly> content_;
- Member<AnimationTimeline> timeline_;
+ Member<DocumentTimeline> timeline_;
// Reflects all pausing, including via pauseForTesting().
bool paused_;
« no previous file with comments | « third_party/WebKit/Source/core/BUILD.gn ('k') | third_party/WebKit/Source/core/animation/Animation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698