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

Unified Diff: third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp

Issue 2413723002: Re-Compute slow scroll region on frameview visibility change. (Closed)
Patch Set: modified test case Created 4 years, 2 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/page/scrolling/ScrollingCoordinator.cpp
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
index d8c6599e5cca8f50180a4cc7c1d0ef73cc436162..b55bcac0167d11404c1b7c61e39bc907d273d244 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -873,7 +873,8 @@ Region ScrollingCoordinator::computeShouldHandleScrollGestureOnMainThreadRegion(
const IntPoint& frameLocation) const {
Region shouldHandleScrollGestureOnMainThreadRegion;
FrameView* frameView = frame->view();
- if (!frameView || frameView->shouldThrottleRendering())
+ if (!frameView || frameView->shouldThrottleRendering() ||
+ !frameView->isVisible())
return shouldHandleScrollGestureOnMainThreadRegion;
IntPoint offset = frameLocation;

Powered by Google App Engine
This is Rietveld 408576698