Skip to content
  • justing's avatar
    LayoutTests: · 187d292f
    justing authored
            Reviewed by Antti.
            
            <rdar://problem/5206311> 
            Whitespace can't be removed when editing text pasted into from web page
    
            * editing/deleting/5206311-1-expected.checksum: Added.
            * editing/deleting/5206311-1-expected.png: Added.
            * editing/deleting/5206311-1-expected.txt: Added.
            * editing/deleting/5206311-1.html: Added.
            * editing/deleting/5206311-2-expected.checksum: Added.
            * editing/deleting/5206311-2-expected.png: Added.
            * editing/deleting/5206311-2-expected.txt: Added.
            * editing/deleting/5206311-2.html: Added.
    
    WebCore:
    
            Reviewed by Antti.
    
            <rdar://problem/5206311> 
            Whitespace can't be removed when editing text pasted into from web page
            
            The whitespace comes from table rows that aren't being removed after they are
            emptied out during a deletion.
    
            * editing/DeleteSelectionCommand.cpp:
            (WebCore::isTableCell):
            (WebCore::isTableRow):
            (WebCore::isTableCellEmpty):
            (WebCore::isTableRowEmpty):
            (WebCore::DeleteSelectionCommand::initializePositionData): Remember the table
            rows that contained the start and end of the selection.
            (WebCore::DeleteSelectionCommand::removePreviouslySelectedEmptyTableRows):
            Remove table rows that come before the end of the selection
            that was removed (except for the row that contained the start of the selection
            and any before that).
            Remove table rows that are come after the start of the selection
            that was removed (except for the row that contained the end of the selection
            and any after that).
            (WebCore::DeleteSelectionCommand::doApply): Call the new function.
            * editing/DeleteSelectionCommand.h:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@24375 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    187d292f