Skip to content
  • kpiascik@rim.com's avatar
    Web Inspector: node search does not work with elements on touch start listener · 0874f994
    kpiascik@rim.com authored
    https://bugs.webkit.org/show_bug.cgi?id=95252
    
    Reviewed by Pavel Feldman.
    
    Source/WebCore:
    
    Added new InspectorInstrumentation::handleTouchEvent() method which
    will prevent a touch handler from firing and inspect and element if we
    are already searching for a node to highlight.
    Now when a user has chosen to inspect element (magnifying glass icon)
    and touches on a page the event will be directed to inspector and
    handled appropriately.
    
    Not testable.
    
    * inspector/InspectorDOMAgent.cpp:
    (WebCore::InspectorDOMAgent::handleTouchEvent):
    (WebCore):
    * inspector/InspectorDOMAgent.h:
    (InspectorDOMAgent):
    * inspector/InspectorInstrumentation.cpp:
    (WebCore):
    (WebCore::InspectorInstrumentation::handleTouchEventImpl):
    * inspector/InspectorInstrumentation.h:
    (InspectorInstrumentation):
    (WebCore::InspectorInstrumentation::handleTouchEvent):
    (WebCore):
    * page/EventHandler.cpp:
    (WebCore::EventHandler::handleTouchEvent):
    
    Source/WebKit/blackberry:
    
    Removed calls to InspectorInstrumentation that no didn't work anyway.
    
    * Api/WebPage.cpp:
    (BlackBerry::WebKit::WebPage::touchEvent):
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@131083 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    0874f994