LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Nov 2006 03:32:31 +0000 (03:32 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 7 Nov 2006 03:32:31 +0000 (03:32 +0000)
commitb9964dc8a28b68f023347a292ee8bceea8e04c58
tree93c8c2ef8247b62636b2f1f0140597a18a2d8a59
parenta84016aa04350d5abdb81cccb149387ebeb38075
LayoutTests:

        Reviewed by harrison

        * editing/execCommand/4641880-1-expected.checksum: Added.
        * editing/execCommand/4641880-1-expected.png: Added.
        * editing/execCommand/4641880-1-expected.txt: Added.
        * editing/execCommand/4641880-1.html: Added.
        * editing/execCommand/4641880-2-expected.checksum: Added.
        * editing/execCommand/4641880-2-expected.png: Added.
        * editing/execCommand/4641880-2-expected.txt: Added.
        * editing/execCommand/4641880-2.html: Added.

WebCore:

        Reviewed by harrison

        <rdar://problem/4641880>
        Setting bullets to existing text grabs subsequent paragraph

        When a selection ends at the start of a paragraph, we rarely paint
        the selection gap before that paragraph, because there often is no gap.
        In a case like this, it's not obvious to the user that the selection
        ends "inside" that paragraph, so it would be confusing if
        InsertUn{Ordered}List and Indent/Outdent operated on that paragraph.

        * editing/FormatBlockCommand.cpp:
        (WebCore::FormatBlockCommand::doApply): Moved the check for editability of
        the selection to a more appropriate place.  Change the endingSelection
        if it ends at the start of a paragraph.
        * editing/IndentOutdentCommand.cpp:
        (WebCore::IndentOutdentCommand::doApply): Ditto.
        * editing/InsertListCommand.cpp:
        (WebCore::InsertListCommand::doApply): Ditto.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17638 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/execCommand/4641880-1-expected.checksum [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-1-expected.png [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-1-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-1.html [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-2-expected.checksum [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-2-expected.png [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-2-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/4641880-2.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/FormatBlockCommand.cpp
WebCore/editing/IndentOutdentCommand.cpp
WebCore/editing/InsertListCommand.cpp