• adele@apple.com's avatar
    WebCore: · 180df329
    adele@apple.com authored
    2009-04-28  Adele Peterson  <adele@apple.com>
    
            Reviewed by Darin Adler.
    
            Fix for <rdar://problem/6617298> Typing delete on an unquoted blank line unquotes the preceding, quoted blank line
    
            Test: editing/deleting/type-delete-after-quote.html
    
            When a selection is deleted that contains a whole number paragraphs plus a line break, we refrain from merging paragraphs after the delete,
            since it is unclear to most users that such a selection actually ends at the start of the next paragraph.  However, when a user hits delete 
            with a caret selection, they actually do expect the start of that paragraph to be merged into the paragraph before it.  We can tell that 
            we're in this state because the TypingCommand creates the selection to delete but it doesn't change the endingSelection.  So we can tell
            that if we started with a caret selection, then we're not in this special case where we have to protect the user from unexpected behavior 
            from deleting a range they selected.
    
            * editing/DeleteSelectionCommand.cpp: (WebCore::DeleteSelectionCommand::initializePositionData):
    
    LayoutTests:
    
    2009-04-28  Adele Peterson  <adele@apple.com>
    
            Reviewed by Darin Adler.
    
            Test for <rdar://problem/6617298> Typing delete on an unquoted blank line unquotes the preceding, quoted blank line
    
            * editing/deleting/type-delete-after-quote.html: Added.
            * platform/mac/editing/deleting/delete-4038408-fix-expected.txt: This expected result change reflects a change in how the editing is done, 
              but the document structure remains the same, and there are no visible changes to the result.
            * platform/mac/editing/deleting/type-delete-after-quote-expected.checksum: Added.
            * platform/mac/editing/deleting/type-delete-after-quote-expected.png: Added.
            * platform/mac/editing/deleting/type-delete-after-quote-expected.txt: Added.
    
    
    
    git-svn-id: svn://svn.chromium.org/blink/trunk@42968 bbb929c8-8fbe-4397-9dbb-9b2b20218538
    180df329
ChangeLog 1.01 MB
The source could not be displayed because it is larger than 1 MB. You can load it anyway or download it instead.