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

Unified Diff: third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp

Issue 1774943003: blink: Rename platform/ methods to prefix with get when they collide. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: clash-platform: rebase-yayyyyyyyy 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/platform/scroll/ScrollAnimator.cpp
diff --git a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
index bd01119154a16827006a89223f1685d0187f20af..7c5380a78842495676e97c6fc9c01f43bf53fda6 100644
--- a/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
+++ b/third_party/WebKit/Source/platform/scroll/ScrollAnimator.cpp
@@ -199,7 +199,7 @@ void ScrollAnimator::tickAnimation(double monotonicTime)
if (isFinished)
m_runState = RunState::PostAnimationCleanup;
else
- scrollableArea()->scheduleAnimation();
+ getScrollableArea()->scheduleAnimation();
TRACE_EVENT0("blink", "ScrollAnimator::notifyPositionChanged");
notifyPositionChanged();
@@ -320,7 +320,7 @@ void ScrollAnimator::updateCompositorAnimations()
void ScrollAnimator::addMainThreadScrollingReason()
{
- if (WebLayer* scrollLayer = toWebLayer(scrollableArea()->layerForScrolling())) {
+ if (WebLayer* scrollLayer = toWebLayer(getScrollableArea()->layerForScrolling())) {
scrollLayer->addMainThreadScrollingReasons(
MainThreadScrollingReason::kAnimatingScrollOnMainThread);
}
@@ -328,7 +328,7 @@ void ScrollAnimator::addMainThreadScrollingReason()
void ScrollAnimator::removeMainThreadScrollingReason()
{
- if (WebLayer* scrollLayer = toWebLayer(scrollableArea()->layerForScrolling())) {
+ if (WebLayer* scrollLayer = toWebLayer(getScrollableArea()->layerForScrolling())) {
scrollLayer->clearMainThreadScrollingReasons(
MainThreadScrollingReason::kAnimatingScrollOnMainThread);
}
@@ -391,7 +391,7 @@ void ScrollAnimator::layerForCompositedScrollingDidChange(
bool ScrollAnimator::registerAndScheduleAnimation()
{
- scrollableArea()->registerForAnimation();
+ getScrollableArea()->registerForAnimation();
if (!m_scrollableArea->scheduleAnimation()) {
scrollToOffsetWithoutAnimation(m_targetOffset);
resetAnimationState();

Powered by Google App Engine
This is Rietveld 408576698