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

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

Issue 2565223002: Add more specific metrics for main thread scrolling reasons (Closed)
Patch Set: Add unit test && refactoring 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/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 fe04c5a66b7f62cd407af5223674f1da69f07753..df13ee13272bf73a7da582b4aa201218287a4d70 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp
@@ -1174,6 +1174,9 @@ MainThreadScrollingReasons ScrollingCoordinator::mainThreadScrollingReasons()
if (frameView->hasBackgroundAttachmentFixedObjects())
reasons |=
MainThreadScrollingReason::kHasBackgroundAttachmentFixedObjects;
+
+ reasons |= frameView->checkMainThreadScrollingReasonDueToLayoutObject();
+
FrameView::ScrollingReasons scrollingReasons =
frameView->getScrollingReasons();
const bool mayBeScrolledByInput =

Powered by Google App Engine
This is Rietveld 408576698