Changeset 112127 in webkit
- Timestamp:
- Mar 26, 2012 10:52:44 AM (12 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r112126 r112127 1 2012-03-26 W. James MacLean <wjmaclean@chromium.org> 2 3 [chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel. 4 https://bugs.webkit.org/show_bug.cgi?id=82133 5 6 Reviewed by James Robinson. 7 8 Covered by existing unit tests. 9 10 * platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp: 11 (WebCore::CCLayerTreeHostImpl::scrollBegin): 12 1 13 2012-03-26 Mike Lawther <mikelawther@chromium.org> 2 14 -
trunk/Source/WebCore/platform/graphics/chromium/cc/CCLayerTreeHostImpl.cpp
r111971 r112127 620 620 } 621 621 622 if ( (type == CCInputHandlerClient::Wheel || type == CCInputHandlerClient::Gesture)&& m_scrollLayerImpl->haveWheelEventHandlers()) {622 if (type == CCInputHandlerClient::Wheel && m_scrollLayerImpl->haveWheelEventHandlers()) { 623 623 TRACE_EVENT("scrollBegin Failed wheelEventHandlers", this, 0); 624 624 return ScrollFailed; -
trunk/Source/WebKit/chromium/ChangeLog
r112088 r112127 1 2012-03-26 W. James MacLean <wjmaclean@chromium.org> 2 3 [chromium] Change handleGestureFling() to use CCInputHandlerClient::Wheel. 4 https://bugs.webkit.org/show_bug.cgi?id=82133 5 6 Reviewed by James Robinson. 7 8 * src/WebCompositorInputHandlerImpl.cpp: 9 (WebKit::WebCompositorInputHandlerImpl::handleGestureFling): 10 * tests/CCLayerTreeHostImplTest.cpp: 11 (WebKitTests::TEST_F): 12 1 13 2012-03-26 Terry Anderson <tdanderson@chromium.org> 2 14 -
trunk/Source/WebKit/chromium/src/WebCompositorInputHandlerImpl.cpp
r112024 r112127 263 263 WebCompositorInputHandlerImpl::EventDisposition WebCompositorInputHandlerImpl::handleGestureFling(const WebGestureEvent& gestureEvent) 264 264 { 265 CCInputHandlerClient::ScrollStatus scrollStatus = m_inputHandlerClient->scrollBegin(IntPoint(gestureEvent.x, gestureEvent.y), CCInputHandlerClient:: Gesture);265 CCInputHandlerClient::ScrollStatus scrollStatus = m_inputHandlerClient->scrollBegin(IntPoint(gestureEvent.x, gestureEvent.y), CCInputHandlerClient::Wheel); 266 266 switch (scrollStatus) { 267 267 case CCInputHandlerClient::ScrollStarted: { -
trunk/Source/WebKit/chromium/tests/CCLayerTreeHostImplTest.cpp
r111971 r112127 204 204 205 205 root->setHaveWheelEventHandlers(true); 206 // With registered event handlers, wheel and gesturescrolls have to go to the main thread.206 // With registered event handlers, wheel scrolls have to go to the main thread. 207 207 EXPECT_EQ(m_hostImpl->scrollBegin(IntPoint(0, 0), CCInputHandlerClient::Wheel), CCInputHandlerClient::ScrollFailed); 208 EXPECT_EQ(m_hostImpl->scrollBegin(IntPoint(0, 0), CCInputHandlerClient::Gesture), CCInputHandlerClient::ScrollFailed); 208 209 // But gesture scrolls can still be handled. 210 EXPECT_EQ(m_hostImpl->scrollBegin(IntPoint(0, 0), CCInputHandlerClient::Gesture), CCInputHandlerClient::ScrollStarted); 209 211 } 210 212
Note: See TracChangeset
for help on using the changeset viewer.