Skip to content
  • leviw@chromium.org's avatar
    2011-01-20 Levi Weintraub <leviw@chromium.org> · bd727b85
    leviw@chromium.org authored
            Reviewed by Ryosuke Niwa.
    
            RTL: Caret goes to the opposite direction when pressing an arrow key after selection is made
            https://bugs.webkit.org/show_bug.cgi?id=49511
    
            Test: editing/selection/rtl-move-selection-right-left.html
    
            * editing/SelectionController.cpp:
            (WebCore::SelectionController::willBeModified):
            Respecting the direction of the containing block when switching selection base and extent in
            RTL content.
    
            (WebCore::SelectionController::modifyMovingRight):
            (WebCore::SelectionController::modifyMovingLeft):
            Using directionOfEnclosingBlock when deciding to use the selection start or end to do the
            correct thing for RTL.
    2011-01-20  Levi Weintraub  <leviw@chromium.org>
    
            Reviewed by Ryosuke Niwa.
    
            RTL: Caret goes to the opposite direction when pressing an arrow key after selection is made
            https://bugs.webkit.org/show_bug.cgi?id=49511
    
            * editing/editing.js:
            (execMoveSelectionLeftByCharacterCommand):
            (moveSelectionLeftByCharacterCommand):
            (execMoveSelectionRightByCharacterCommand):
            (moveSelectionRightByCharacterCommand):
            (execExtendSelectionLeftByCharacterCommand):
            (extendSelectionLeftByCharacterCommand):
            (execExtendSelectionRightByCharacterCommand):
            (extendSelectionRightByCharacterCommand):
            Adding some left/right selection convenience methods for use with RTL tests.
    
            * editing/selection/rtl-move-selection-right-left-expected.txt: Added.
            * editing/selection/rtl-move-selection-right-left.html: Added.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@76312 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bd727b85