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

Unified Diff: third_party/WebKit/Source/web/PageOverlay.cpp

Issue 1648293003: Fix smooth scroll jump when switching scroll handling between MT and CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: finish animations on main Created 4 years, 11 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/web/PageOverlay.cpp
diff --git a/third_party/WebKit/Source/web/PageOverlay.cpp b/third_party/WebKit/Source/web/PageOverlay.cpp
index f44e6ffba1010fc9666b377b10e7a11b07416844..944e97743ac43d689b3440b0466b86c1434b5ebe 100644
--- a/third_party/WebKit/Source/web/PageOverlay.cpp
+++ b/third_party/WebKit/Source/web/PageOverlay.cpp
@@ -85,8 +85,7 @@ void PageOverlay::update()
devTools->willAddPageOverlay(m_layer.get());
// This is required for contents of overlay to stay in sync with the page while scrolling.
- WebLayer* platformLayer = m_layer->platformLayer();
- platformLayer->addMainThreadScrollingReasons(MainThreadScrollingReason::kPageOverlay);
+ m_layer->setMainThreadScrollingReasons(MainThreadScrollingReason::kPageOverlay);
page->frameHost().visualViewport().containerLayer()->addChild(m_layer.get());
}

Powered by Google App Engine
This is Rietveld 408576698