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

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: Moving mainThreadScrollingReason related function from ScrollingCoordinator to FrameView to indicat… 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 e50d441318e02d9e712f2b5845123466b39657b5..658bf3e00a7a6bfbea89e3c2409f81c758124204 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.cpp
@@ -1724,11 +1724,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