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

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

Issue 1602773006: blink: Make WebMainThreadScrollingReason wrap the cc enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: enumwrap: comment Created 4 years, 11 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/page/scrolling/ScrollingCoordinator.h
diff --git a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h
index fd48d40ca406d2b87d091cea458b4ceb8004c3fb..be99b70698838a815062f4185df6abeeb82f970a 100644
--- a/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h
+++ b/third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h
@@ -30,8 +30,8 @@
#include "core/layout/LayoutObject.h"
#include "platform/PlatformWheelEvent.h"
#include "platform/geometry/IntRect.h"
+#include "platform/scroll/MainThreadScrollingReason.h"
#include "platform/scroll/ScrollTypes.h"
-#include "public/platform/WebMainThreadScrollingReason.h"
#include "wtf/Noncopyable.h"
#include "wtf/text/WTFString.h"
@@ -140,7 +140,7 @@ protected:
private:
bool shouldUpdateAfterCompositingChange() const { return m_scrollGestureRegionIsDirty || m_touchEventTargetRectsAreDirty || m_shouldScrollOnMainThreadDirty || frameViewIsDirty(); }
- void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScrollingReasons);
+ void setShouldUpdateScrollLayerPositionOnMainThread(uint32_t mainThreadScrollingReasons);
bool hasVisibleSlowRepaintViewportConstrainedObjects(FrameView*) const;
@@ -162,7 +162,8 @@ private:
HashSet<const PaintLayer*> m_layersWithTouchRects;
bool m_wasFrameScrollable;
- MainThreadScrollingReasons m_lastMainThreadScrollingReasons;
+ // A set of flags from MainThreadScrollingReason.
+ uint32_t m_lastMainThreadScrollingReasons;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698