| 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 dff9ec6cdf05317ec33675b3d62167066f24030e..9d353189efb8d043a67ef5c640bd8b363b04f933 100644
|
| --- a/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| +++ b/third_party/WebKit/Source/core/frame/FrameView.cpp
|
| @@ -4896,6 +4896,19 @@ MainThreadScrollingReasons FrameView::mainThreadScrollingReasons() const {
|
| }
|
|
|
| String FrameView::mainThreadScrollingReasonsAsText() const {
|
| + if (RuntimeEnabledFeatures::slimmingPaintV2Enabled()) {
|
| + DCHECK(lifecycle().state() >= DocumentLifecycle::PrePaintClean);
|
| +
|
| + // Slimming paint v2 stores main thread scrolling reasons on property
|
| + // trees instead of in |m_mainThreadScrollingReasons|.
|
| + MainThreadScrollingReasons reasons = 0;
|
| + if (const auto* scrollNode = scroll())
|
| + reasons |= scrollNode->mainThreadScrollingReasons();
|
| + return String(
|
| + MainThreadScrollingReason::mainThreadScrollingReasonsAsText(reasons)
|
| + .c_str());
|
| + }
|
| +
|
| DCHECK(lifecycle().state() >= DocumentLifecycle::CompositingClean);
|
| if (layerForScrolling() && layerForScrolling()->platformLayer()) {
|
| String result(
|
|
|