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

Unified Diff: third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h

Issue 2773593005: Move logic of recording main thread scrolling reasons from cc to blink::ScrollManager (Closed)
Patch Set: Update recording logic for non composited reasons Created 3 years, 9 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/paint/PaintLayerScrollableArea.h
diff --git a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
index af3638057b21ad9d63567520d83a252ac2a5eaff..6d381c1c2552a6d21d1bfc5e6797af8a52189df7 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -481,10 +481,8 @@ class CORE_EXPORT PaintLayerScrollableArea final
void invalidateStickyConstraintsFor(PaintLayer*,
bool needsCompositingUpdate = true);
- void removeStyleRelatedMainThreadScrollingReasons();
- void addStyleRelatedMainThreadScrollingReasons(const uint32_t);
- bool hasMainThreadScrollingReason(uint32_t reason) const {
- return m_reasons & reason;
+ uint32_t getNonCompositedMainThreadScrollingReasons() {
+ return m_nonCompositedMainThreadScrollingReasons;
}
uint64_t id() const;
@@ -595,7 +593,7 @@ class CORE_EXPORT PaintLayerScrollableArea final
std::unique_ptr<PaintLayerScrollableAreaRareData> m_rareData;
// MainThreadScrollingReason due to the properties of the LayoutObject
- uint32_t m_reasons;
+ uint32_t m_nonCompositedMainThreadScrollingReasons;
#if DCHECK_IS_ON()
bool m_hasBeenDisposed;

Powered by Google App Engine
This is Rietveld 408576698