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

Unified Diff: third_party/WebKit/Source/core/frame/FrameView.cpp

Issue 2531603003: Only scroll on main if the targeted frames need to scroll on main (Closed)
Patch Set: Update sub-frame using loops instead of recursion & integrate a patch to fix spv2 problem 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/frame/FrameView.cpp
diff --git a/third_party/WebKit/Source/core/frame/FrameView.cpp b/third_party/WebKit/Source/core/frame/FrameView.cpp
index 8f14f007e448d32c2a6764b3b3b04a6adad430ce..ce09e0c7e4411a47529559b3a1c4bf5bdd378b47 100644
--- a/third_party/WebKit/Source/core/frame/FrameView.cpp
+++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
@@ -825,7 +825,7 @@ bool FrameView::usesCompositedScrolling() const {
bool FrameView::shouldScrollOnMainThread() const {
if (ScrollingCoordinator* sc = scrollingCoordinator()) {
- if (sc->shouldUpdateScrollLayerPositionOnMainThread())
+ if (sc->shouldUpdateScrollLayerPositionOnMainThread(m_frame))
return true;
}
return ScrollableArea::shouldScrollOnMainThread();

Powered by Google App Engine
This is Rietveld 408576698