Index: Source/core/page/scrolling/ScrollingCoordinator.h |
diff --git a/Source/core/page/scrolling/ScrollingCoordinator.h b/Source/core/page/scrolling/ScrollingCoordinator.h |
index 2423b1dfbccbe68cec3f2623172d939961e6770e..5e1d6be1bbf4c834a5459f37a638ba818aa6540e 100644 |
--- a/Source/core/page/scrolling/ScrollingCoordinator.h |
+++ b/Source/core/page/scrolling/ScrollingCoordinator.h |
@@ -72,6 +72,10 @@ public: |
// frame view's underlying document. |
void frameViewWheelEventHandlerCountChanged(FrameView*); |
+ // Should be called whenever a scroll event handler is added or removed in the |
+ // frame view's underlying document. |
+ void frameViewScrollEventHandlerCountChanged(FrameView*); |
+ |
// Should be called whenever the slow repaint objects counter changes between zero and one. |
void frameViewHasSlowRepaintObjectsDidChange(FrameView*); |
@@ -124,7 +128,6 @@ protected: |
bool isForMainFrame(ScrollableArea*) const; |
- unsigned computeCurrentWheelEventHandlerCount(); |
GraphicsLayer* scrollLayerForFrameView(FrameView*); |
GraphicsLayer* counterScrollingLayerForFrameView(FrameView*); |
@@ -136,7 +139,8 @@ protected: |
bool m_shouldScrollOnMainThreadDirty; |
private: |
- void recomputeWheelEventHandlerCountForFrameView(FrameView*); |
+ void updateWheelEventHandlerCountForFrameView(FrameView*); |
+ void updateScrollEventHandlerCountForFrameView(FrameView*); |
void setShouldUpdateScrollLayerPositionOnMainThread(MainThreadScrollingReasons); |
bool hasVisibleSlowRepaintViewportConstrainedObjects(FrameView*) const; |
@@ -146,6 +150,7 @@ private: |
void setTouchEventTargetRects(const LayerHitTestRects&); |
void computeTouchEventTargetRects(LayerHitTestRects&); |
void setWheelEventHandlerCount(unsigned); |
+ void setScrollEventHandlerCount(unsigned); |
blink::WebScrollbarLayer* addWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation, PassOwnPtr<blink::WebScrollbarLayer>); |
blink::WebScrollbarLayer* getWebScrollbarLayer(ScrollableArea*, ScrollbarOrientation); |