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

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

Issue 2236583003: Rename AnimationEffect to AnimationEffectReadOnly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@deprecated-assert
Patch Set: Rebase Created 4 years, 4 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
Index: third_party/WebKit/Source/core/animation/Animation.cpp
diff --git a/third_party/WebKit/Source/core/animation/Animation.cpp b/third_party/WebKit/Source/core/animation/Animation.cpp
index 9b67e8cc2cf05cdbb5c18505377bc0ddc3d36e51..6a62e8e44bf1d3880208bd5e643433bf706adff3 100644
--- a/third_party/WebKit/Source/core/animation/Animation.cpp
+++ b/third_party/WebKit/Source/core/animation/Animation.cpp
@@ -60,7 +60,7 @@ static unsigned nextSequenceNumber()
}
-Animation* Animation::create(AnimationEffect* effect, AnimationTimeline* timeline)
+Animation* Animation::create(AnimationEffectReadOnly* effect, AnimationTimeline* timeline)
{
if (!timeline) {
// FIXME: Support creating animations without a timeline.
@@ -78,7 +78,7 @@ Animation* Animation::create(AnimationEffect* effect, AnimationTimeline* timelin
return animation;
}
-Animation::Animation(ExecutionContext* executionContext, AnimationTimeline& timeline, AnimationEffect* content)
+Animation::Animation(ExecutionContext* executionContext, AnimationTimeline& timeline, AnimationEffectReadOnly* content)
: ActiveScriptWrappable(this)
, ActiveDOMObject(executionContext)
, m_playState(Idle)
@@ -450,7 +450,7 @@ void Animation::setStartTimeInternal(double newStartTime)
}
}
-void Animation::setEffect(AnimationEffect* newEffect)
+void Animation::setEffect(AnimationEffectReadOnly* newEffect)
{
if (m_content == newEffect)
return;
@@ -869,7 +869,7 @@ double Animation::timeToEffectChange()
? m_content->timeToForwardsEffectChange() / m_playbackRate
: m_content->timeToReverseEffectChange() / -m_playbackRate;
- return !hasActiveAnimationsOnCompositor() && m_content->getPhase() == AnimationEffect::PhaseActive
+ return !hasActiveAnimationsOnCompositor() && m_content->getPhase() == AnimationEffectReadOnly::PhaseActive
? 0
: result;
}
« no previous file with comments | « third_party/WebKit/Source/core/animation/Animation.h ('k') | third_party/WebKit/Source/core/animation/AnimationEffect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698