Skip to content
  • commit-queue@webkit.org's avatar
    [BlackBerry] Read "data-blackberry-text-selection-handle-position" attribute from element · 89a2ee59
    commit-queue@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=110235
    
    Patch by Yongxin Dai <yodai@rim.com> on 2013-02-20
    Reviewed by Yong Li.
    
    PR #257207.
    
    Read "data-blackberry-text-selection-handle-position" attribute from element and pass it along
    with notifySelectionDetailsChanged(). If "data-blackberry-text-selection-handle-position" attribute
    is specified in the element, the selection handle is always flipped to the required position.
    along with selected text within element.
    
    Reviewed Internally by Mike Fenton.
    
    * Api/WebPageClient.h:
    * WebKitSupport/DOMSupport.cpp:
    (BlackBerry::WebKit::DOMSupport::selectionContainerElement):
    (DOMSupport):
    (BlackBerry::WebKit::DOMSupport::elementHandlePositionAttribute):
    * WebKitSupport/DOMSupport.h:
    * WebKitSupport/SelectionHandler.cpp:
    (BlackBerry::WebKit::SelectionHandler::requestedSelectionHandlePosition):
    (WebKit):
    (BlackBerry::WebKit::SelectionHandler::selectionPositionChanged):
    * WebKitSupport/SelectionHandler.h:
    (SelectionHandler):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@143461 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    89a2ee59