+2012-02-03 Allan Sandfeld Jensen <allan.jensen@nokia.com>
+
+ Do not ASSERT on TouchStationary TouchPoint state.
+ https://bugs.webkit.org/show_bug.cgi?id=77620
+
+ Reviewed by Kenneth Rohde Christiansen.
+
+ * page/EventHandler.cpp:
+ (WebCore::eventNameForTouchPointState): Explicitly show that TouchStationary is asserted.
+ (WebCore::EventHandler::handleTouchEvent):
+ Remove TouchStationary from ASSERT. The value of HitTestRequest is restored to the
+ value it should have if hittested, but is not used.
+
2012-02-03 Kentaro Hara <haraken@chromium.org>
Add the "ObjC" prefix to ObjC specific IDL attributes
return eventNames().touchstartEvent;
case PlatformTouchPoint::TouchMoved:
return eventNames().touchmoveEvent;
+ case PlatformTouchPoint::TouchStationary:
+ // TouchStationary state is not converted to touch events, so fall through to assert.
default:
ASSERT_NOT_REACHED();
return emptyAtom;
case PlatformTouchPoint::TouchCancelled:
hitType |= HitTestRequest::Release;
break;
+ case PlatformTouchPoint::TouchStationary:
+ hitType |= HitTestRequest::Active | HitTestRequest::ReadOnly;
+ break;
default:
ASSERT_NOT_REACHED();
break;
// we also remove it from the map.
touchTarget = m_originatingTouchPointTargets.take(touchPointTargetKey);
} else
- // No hittest is performed on move, since the target is not allowed to change anyway.
+ // No hittest is performed on move or stationary, since the target is not allowed to change anyway.
touchTarget = m_originatingTouchPointTargets.get(touchPointTargetKey);
if (!touchTarget.get())