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

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

Issue 2816973002: Revert of Move logic of recording main thread scrolling reasons from cc to blink::ScrollManager (Closed)
Patch Set: Created 3 years, 8 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 8a3e916091b40dc774ef1e0bfbfb2dbde21e8ea6..0a348662a9baa98a5ee1c03ae0a0724f0af5ea04 100644
--- a/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
+++ b/third_party/WebKit/Source/core/paint/PaintLayerScrollableArea.h
@@ -479,12 +479,14 @@
StickyConstraintsMap& GetStickyConstraintsMap() {
return EnsureRareData().sticky_constraints_map_;
}
-
void InvalidateAllStickyConstraints();
void InvalidateStickyConstraintsFor(PaintLayer*,
bool needs_compositing_update = true);
- uint32_t GetNonCompositedMainThreadScrollingReasons() {
- return non_composited_main_thread_scrolling_reasons_;
+
+ void RemoveStyleRelatedMainThreadScrollingReasons();
+ void AddStyleRelatedMainThreadScrollingReasons(const uint32_t);
+ bool HasMainThreadScrollingReason(uint32_t reason) const {
+ return reasons_ & reason;
}
uint64_t Id() const;
@@ -595,7 +597,7 @@
std::unique_ptr<PaintLayerScrollableAreaRareData> rare_data_;
// MainThreadScrollingReason due to the properties of the LayoutObject
- uint32_t non_composited_main_thread_scrolling_reasons_;
+ uint32_t reasons_;
#if DCHECK_IS_ON()
bool has_been_disposed_;

Powered by Google App Engine
This is Rietveld 408576698