• harrison's avatar
    Reviewed by Justin. · e4b84c50
    harrison authored
            <rdar://problem/4065343> Mail: Deleting a line sometimes makes the insertion point jump to the top of the message
    
            Test cases added: delete-br-011.html
    
            * khtml/editing/delete_selection_command.cpp:
            (khtml::DeleteSelectionCommand::handleSpecialCaseBRDelete):
            Make sure m_endingSelection is usable.
    
            (khtml::DeleteSelectionCommand::doApply):
            Skip general delete related code when just doing handleSpecialCaseBRDelete().
    
            * layout-tests/editing/deleting/delete-br-011-expected.txt: Added.
            * layout-tests/editing/deleting/delete-br-011.html: Added.
            Mimics composing a Mail.app reply, clicking past the end of the content, and hitting delete key.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@9821 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    e4b84c50
delete_selection_command.cpp 32.1 KB