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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp

Issue 2531603003: Only scroll on main if the targeted frames need to scroll on main (Closed)
Patch Set: Fix compiling error due to using backslash at the end of a commenting line" Created 4 years 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/paint/PaintLayerScrollableArea.cpp
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
index ac22ac5ab04f247e1d77926b9acabb6a835c8cac..4d09151d6e3ecb27481b42b2acc03afb23e8d169 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1705,11 +1705,8 @@ bool PaintLayerScrollableArea::usesCompositedScrolling() const {
bool PaintLayerScrollableArea::shouldScrollOnMainThread() const {
if (LocalFrame* frame = box().frame()) {
- if (Page* page = frame->page()) {
- if (page->scrollingCoordinator()
- ->shouldUpdateScrollLayerPositionOnMainThread())
- return true;
- }
+ if (frame->view()->mainThreadScrollingReasons())
+ return true;
}
return ScrollableArea::shouldScrollOnMainThread();
}

Powered by Google App Engine
This is Rietveld 408576698