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

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

Issue 1773813007: blink: Rename modules/ method to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-modules: rebase-fixes Created 4 years, 9 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 38bb75c92624e0f61af4f2fc9ea39e92976d8492..bd2be7e794179a709473acf9c64020e5fcd1fdfa 100644
--- a/third_party/WebKit/Source/core/animation/Animation.cpp
+++ b/third_party/WebKit/Source/core/animation/Animation.cpp
@@ -613,7 +613,7 @@ void Animation::finish(ExceptionState& exceptionState)
ScriptPromise Animation::finished(ScriptState* scriptState)
{
if (!m_finishedPromise) {
- m_finishedPromise = new AnimationPromise(scriptState->executionContext(), this, AnimationPromise::Finished);
+ m_finishedPromise = new AnimationPromise(scriptState->getExecutionContext(), this, AnimationPromise::Finished);
if (playStateInternal() == Finished)
m_finishedPromise->resolve(this);
}
@@ -623,7 +623,7 @@ ScriptPromise Animation::finished(ScriptState* scriptState)
ScriptPromise Animation::ready(ScriptState* scriptState)
{
if (!m_readyPromise) {
- m_readyPromise = new AnimationPromise(scriptState->executionContext(), this, AnimationPromise::Ready);
+ m_readyPromise = new AnimationPromise(scriptState->getExecutionContext(), this, AnimationPromise::Ready);
if (playStateInternal() != Pending)
m_readyPromise->resolve(this);
}
@@ -635,9 +635,9 @@ const AtomicString& Animation::interfaceName() const
return EventTargetNames::AnimationPlayer;
}
-ExecutionContext* Animation::executionContext() const
+ExecutionContext* Animation::getExecutionContext() const
{
- return ContextLifecycleObserver::executionContext();
+ return ContextLifecycleObserver::getExecutionContext();
}
bool Animation::hasPendingActivity() const
@@ -831,7 +831,7 @@ bool Animation::update(TimingUpdateReason reason)
if (reason == TimingUpdateForAnimationFrame && (idle || hasStartTime())) {
if (idle) {
const AtomicString& eventType = EventTypeNames::cancel;
- if (executionContext() && hasEventListeners(eventType)) {
+ if (getExecutionContext() && hasEventListeners(eventType)) {
double eventCurrentTime = nullValue();
m_pendingCancelledEvent = AnimationPlayerEvent::create(eventType, eventCurrentTime, timeline()->currentTime());
m_pendingCancelledEvent->setTarget(this);
@@ -840,7 +840,7 @@ bool Animation::update(TimingUpdateReason reason)
}
} else {
const AtomicString& eventType = EventTypeNames::finish;
- if (executionContext() && hasEventListeners(eventType)) {
+ if (getExecutionContext() && hasEventListeners(eventType)) {
double eventCurrentTime = currentTimeInternal() * 1000;
m_pendingFinishedEvent = AnimationPlayerEvent::create(eventType, eventCurrentTime, timeline()->currentTime());
m_pendingFinishedEvent->setTarget(this);
@@ -1052,7 +1052,7 @@ Animation::PlayStateUpdateScope::~PlayStateUpdateScope()
bool Animation::addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& options)
{
if (eventType == EventTypeNames::finish)
- UseCounter::count(executionContext(), UseCounter::AnimationFinishEvent);
+ UseCounter::count(getExecutionContext(), UseCounter::AnimationFinishEvent);
return EventTargetWithInlineData::addEventListenerInternal(eventType, listener, options);
}
« no previous file with comments | « third_party/WebKit/Source/core/animation/Animation.h ('k') | third_party/WebKit/Source/core/css/CSSFontFaceSrcValue.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698