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

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

Issue 699183004: Main-thread scroll if we have fixed-pos children and overflow:hidden. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month 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
« Source/core/frame/FrameView.cpp ('K') | « Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/page/scrolling/ScrollingCoordinator.cpp
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.cpp b/Source/core/page/scrolling/ScrollingCoordinator.cpp
index 894e1c2f82949d54987dec697f895c6754ed3cfd..60ffc3dea30f18e3405aeff1d5e6c8007e785c45 100644
--- a/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -946,8 +946,12 @@ MainThreadScrollingReasons ScrollingCoordinator::mainThreadScrollingReasons() co
if (frameView->hasSlowRepaintObjects())
reasons |= HasSlowRepaintObjects;
- if (frameView->isScrollable() && hasVisibleSlowRepaintViewportConstrainedObjects(frameView))
+ FrameView::ScrollingReasons scrollingReasons = frameView->scrollingReasons();
+ if ((scrollingReasons == FrameView::NonScrollableFromLayout
+ || scrollingReasons == FrameView::Scrollable)
+ && hasVisibleSlowRepaintViewportConstrainedObjects(frameView)) {
Ian Vollick 2014/11/05 16:40:06 I think this could be made clearer with some well
awoloszyn 2014/11/05 19:25:11 Done.
reasons |= HasNonLayerViewportConstrainedObjects;
+ }
return reasons;
}
« Source/core/frame/FrameView.cpp ('K') | « Source/core/frame/FrameView.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698