• harrison's avatar
    Reviewed by Justin. · 17bab067
    harrison authored
            "<rdar://problem/4064017> Safari crashes at -[WebCoreBridge firstRectForDOMRange:] + 92"
    
            * khtml/editing/delete_selection_command.cpp:
            (khtml::DeleteSelectionCommand::insertPlaceholderForAncestorBlockContent):
            Do not insert placeholder if selection ends at a BR.
    
            (khtml::DeleteSelectionCommand::handleGeneralDelete):
            No need to preserve starting BR because insertPlaceholderForAncestorBlockContent already did.
    
            * khtml/xml/dom_position.cpp:
            (DOM::Position::upstream):
            (DOM::Position::downstream):
            Fixed to return original position instead of invisible position when no suitable position found upstream.
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@10786 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    17bab067
delete_selection_command.cpp 33.2 KB