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

Unified Diff: third_party/WebKit/Source/core/layout/ScrollAnchor.cpp

Issue 1950243005: Communicate MT changes to impl-only scroll offset animations (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: apply initial feedback comments Created 4 years, 7 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/layout/ScrollAnchor.cpp
diff --git a/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp b/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
index 2d805f19d6f25979023b1f490169cb57cc4a0e4d..f045d2a4725d90b096a033ac794318520fbe492e 100644
--- a/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
+++ b/third_party/WebKit/Source/core/layout/ScrollAnchor.cpp
@@ -188,6 +188,7 @@ void ScrollAnchor::restore()
m_scroller->setScrollPosition(
m_scroller->scrollPositionDouble() + DoubleSize(adjustment),
AnchoringScroll);
+ animator->updateImplOnlyAnimationWithAdjustment(FloatSize(adjustment));
} else {
// If in the middle of a scroll animation, stop the animation, make
// the adjustment, and continue the animation on the pending delta.

Powered by Google App Engine
This is Rietveld 408576698