Changeset 146224 in webkit
- Timestamp:
- Mar 19, 2013, 11:20:35 AM (12 years ago)
- Location:
- trunk
- Files:
-
- 6 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r146221 r146224 1 2013-03-19 Terry Anderson <tdanderson@chromium.org> 2 3 Hover effects from a GestureTapDown are dismissed by a GestureTap on the hover element 4 https://bugs.webkit.org/show_bug.cgi?id=103283 5 6 Reviewed by Antonio Gomes. 7 8 Two layout tests added. See descriptions inline. 9 10 * fast/events/touch/gesture/gesture-tap-hover-clear-expected.txt: Added. 11 * fast/events/touch/gesture/gesture-tap-hover-clear.html: Added. 12 Tests that a GestureTap or a mouse move outside of the hovered element 13 clears its hover effects. 14 * fast/events/touch/gesture/gesture-tap-on-hover-element-expected.txt: Added. 15 * fast/events/touch/gesture/gesture-tap-on-hover-element.html: Added. 16 Tests that a GestureTap on an element which has been made visible as 17 a hover effect is dispatched to the element and does not dismiss the 18 hover effect. 19 * platform/chromium/fast/events/touch/gesture/gesture-tap-hover-clear-expected.txt: Added. 20 * platform/chromium/fast/events/touch/gesture/gesture-tap-on-hover-element-expected.txt: Added. 21 1 22 2013-03-19 Simon Fraser <simon.fraser@apple.com> 2 23 -
trunk/Source/WebCore/ChangeLog
r146220 r146224 1 2013-03-19 Terry Anderson <tdanderson@chromium.org> 2 3 Hover effects from a GestureTapDown are dismissed by a GestureTap on the hover element 4 https://bugs.webkit.org/show_bug.cgi?id=103283 5 6 Reviewed by Antonio Gomes. 7 8 On a GestureTap event over an element that was made visible as a hover effect, the 9 GestureTap should be applied to that element and the hover effects should not be dismissed. 10 A GestureTap or a mouse move to a location outside of the element should still dismiss the 11 hover effects. 12 13 Tests: fast/events/touch/gesture/gesture-tap-hover-clear.html 14 fast/events/touch/gesture/gesture-tap-on-hover-element.html 15 16 * page/EventHandler.cpp: 17 (WebCore::EventHandler::handleGestureEvent): 18 1 19 2013-03-19 Alexei Filippov <alph@chromium.org> 2 20 -
trunk/Source/WebCore/page/EventHandler.cpp
r145913 r146224 2476 2476 #endif 2477 2477 hitType |= HitTestRequest::Active; 2478 } else if (gestureEvent.type() == PlatformEvent::GestureTap || gestureEvent.type() == PlatformEvent::GestureTapDownCancel)2478 } else if (gestureEvent.type() == PlatformEvent::GestureTapDownCancel) 2479 2479 hitType |= HitTestRequest::Release; 2480 else if (gestureEvent.type() == PlatformEvent::GestureTap) { 2481 // The mouseup event synthesized for this gesture will clear the active state of the 2482 // targeted node, so performing a ReadOnly hit test here is fine. 2483 hitType |= HitTestRequest::ReadOnly; 2484 } 2480 2485 else 2481 2486 hitType |= HitTestRequest::Active | HitTestRequest::ReadOnly;
Note:
See TracChangeset
for help on using the changeset viewer.