Changeset 106649 in webkit


Ignore:
Timestamp:
Feb 3, 2012 4:49:14 AM (12 years ago)
Author:
commit-queue@webkit.org
Message:

Do not ASSERT on TouchStationary TouchPoint state.
https://bugs.webkit.org/show_bug.cgi?id=77620

Patch by Allan Sandfeld Jensen <allan.jensen@nokia.com> on 2012-02-03
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.

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106648 r106649  
     12012-02-03  Allan Sandfeld Jensen  <allan.jensen@nokia.com>
     2
     3        Do not ASSERT on TouchStationary TouchPoint state.
     4        https://bugs.webkit.org/show_bug.cgi?id=77620
     5
     6        Reviewed by Kenneth Rohde Christiansen.
     7
     8        * page/EventHandler.cpp:
     9        (WebCore::eventNameForTouchPointState): Explicitly show that TouchStationary is asserted.
     10        (WebCore::EventHandler::handleTouchEvent):
     11            Remove TouchStationary from ASSERT. The value of HitTestRequest is restored to the
     12            value it should have if hittested, but is not used.
     13
    1142012-02-03  Kentaro Hara  <haraken@chromium.org>
    215
  • trunk/Source/WebCore/page/EventHandler.cpp

    r106642 r106649  
    32823282    case PlatformTouchPoint::TouchMoved:
    32833283        return eventNames().touchmoveEvent;
     3284    case PlatformTouchPoint::TouchStationary:
     3285        // TouchStationary state is not converted to touch events, so fall through to assert.
    32843286    default:
    32853287        ASSERT_NOT_REACHED();
     
    33373339            hitType |= HitTestRequest::Release;
    33383340            break;
     3341        case PlatformTouchPoint::TouchStationary:
     3342            hitType |= HitTestRequest::Active | HitTestRequest::ReadOnly;
     3343            break;
    33393344        default:
    33403345            ASSERT_NOT_REACHED();
     
    33693374            touchTarget = m_originatingTouchPointTargets.take(touchPointTargetKey);
    33703375        } else
    3371             // No hittest is performed on move, since the target is not allowed to change anyway.
     3376            // No hittest is performed on move or stationary, since the target is not allowed to change anyway.
    33723377            touchTarget = m_originatingTouchPointTargets.get(touchPointTargetKey);
    33733378
Note: See TracChangeset for help on using the changeset viewer.