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

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: nit 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..9e77296a4d4f464ac4e8ff6f533f28b2f0bb200a 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -481,11 +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;
- }
+ void resetStyleRelatedMainThreadScrollingReasons() { m_reasons = 0; }
bokan 2017/03/24 17:55:55 reset only gets called from inside PLSA. Remove th
yigu 2017/03/27 21:02:08 Done.
+ uint32_t getStyleRelatedMainThreadScrollingReasons() { return m_reasons; }
uint64_t id() const;

Powered by Google App Engine
This is Rietveld 408576698