Changeset 140489 in webkit
- Timestamp:
- Jan 22, 2013, 5:33:55 PM (14 years ago)
- Location:
- branches/chromium/1364
- Files:
-
- 3 edited
- 4 copied
-
LayoutTests/platform/chromium-win/fast/events/panScroll-click-expected.txt (copied) (copied from trunk/LayoutTests/platform/chromium-win/fast/events/panScroll-click-expected.txt )
-
LayoutTests/platform/chromium-win/fast/events/panScroll-click.html (copied) (copied from trunk/LayoutTests/platform/chromium-win/fast/events/panScroll-click.html )
-
LayoutTests/platform/chromium-win/fast/events/panScroll-drag-expected.txt (copied) (copied from trunk/LayoutTests/platform/chromium-win/fast/events/panScroll-drag-expected.txt )
-
LayoutTests/platform/chromium-win/fast/events/panScroll-drag.html (copied) (copied from trunk/LayoutTests/platform/chromium-win/fast/events/panScroll-drag.html )
-
LayoutTests/platform/chromium/TestExpectations (modified) (1 diff)
-
Source/WebCore/page/AutoscrollController.cpp (modified) (6 diffs)
-
Source/WebCore/page/AutoscrollController.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/chromium/1364/LayoutTests/platform/chromium/TestExpectations
r140464 r140489 2070 2070 webkit.org/b/104991 [ Android Linux Mac ] platform/chromium-win/fast/events/panScroll-nested-divs.html [ Skip ] 2071 2071 2072 webkit.org/b/107205 [ Android Linux Mac ] platform/chromium-win/fast/events/panScroll-click.html [ Skip ] 2073 webkit.org/b/107205 [ Android Linux Mac ] platform/chromium-win/fast/events/panScroll-drag.html [ Skip ] 2074 2072 2075 crbug.com/31623 [ SnowLeopard Win ] http/tests/appcache/remove-cache.html [ Failure Pass Timeout ] 2073 2076 -
branches/chromium/1364/Source/WebCore/page/AutoscrollController.cpp
r137726 r140489 54 54 , m_autoscrollRenderer(0) 55 55 , m_autoscrollType(NoAutoscroll) 56 #if ENABLE(PAN_SCROLLING)57 , m_panScrollButtonPressed(false)58 , m_springLoadedPanScrollInProgress(false)59 #endif60 56 { 61 57 } … … 90 86 m_autoscrollType = NoAutoscroll; 91 87 m_autoscrollRenderer = 0; 92 #if ENABLE(PAN_SCROLLING)93 m_panScrollButtonPressed = false;94 m_springLoadedPanScrollInProgress = false;95 #endif96 88 97 89 if (!scrollable) … … 158 150 void AutoscrollController::handleMouseReleaseEvent(const PlatformMouseEvent& mouseEvent) 159 151 { 160 if (mouseEvent.button() == MiddleButton) 161 m_panScrollButtonPressed = false; 162 if (m_springLoadedPanScrollInProgress) 152 switch (m_autoscrollType) { 153 case AutoscrollForPan: 154 if (mouseEvent.button() == MiddleButton) 155 m_autoscrollType = AutoscrollForPanCanStop; 156 break; 157 case AutoscrollForPanCanStop: 163 158 stopAutoscrollTimer(); 159 break; 160 } 164 161 } 165 162 166 163 bool AutoscrollController::panScrollInProgress() const 167 164 { 168 return m_autoscrollType == AutoscrollForPan ;165 return m_autoscrollType == AutoscrollForPan || m_autoscrollType == AutoscrollForPanCanStop; 169 166 } 170 167 … … 178 175 m_autoscrollRenderer = scrollable; 179 176 m_panScrollStartPos = lastKnownMousePosition; 180 m_springLoadedPanScrollInProgress = false;181 177 182 178 if (FrameView* view = scrollable->frame()->view()) … … 211 207 break; 212 208 #if ENABLE(PAN_SCROLLING) 209 case AutoscrollForPanCanStop: 213 210 case AutoscrollForPan: 214 211 // we verify that the main frame hasn't received the order to stop the panScroll … … 242 239 bool south = m_panScrollStartPos.y() < (lastKnownMousePosition.y() - ScrollView::noPanScrollRadius); 243 240 244 if ( (east || west || north || south) && m_panScrollButtonPressed)245 m_ springLoadedPanScrollInProgress = true;241 if (m_autoscrollType == AutoscrollForPan && (east || west || north || south)) 242 m_autoscrollType = AutoscrollForPanCanStop; 246 243 247 244 if (north) { -
branches/chromium/1364/Source/WebCore/page/AutoscrollController.h
r137726 r140489 43 43 AutoscrollForSelection, 44 44 #if ENABLE(PAN_SCROLLING) 45 AutoscrollForPanCanStop, 45 46 AutoscrollForPan, 46 47 #endif … … 77 78 #if ENABLE(PAN_SCROLLING) 78 79 IntPoint m_panScrollStartPos; 79 bool m_panScrollButtonPressed;80 bool m_springLoadedPanScrollInProgress;81 80 #endif 82 81 };
Note:
See TracChangeset
for help on using the changeset viewer.