LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jul 2006 23:38:26 +0000 (23:38 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 21 Jul 2006 23:38:26 +0000 (23:38 +0000)
commit9a7665afb5b09b55b5413b76b286db8c82446ba5
tree4a41b9d6f77dbe38addb6a93ba1791f52ef661b3
parent6018b4d1fa8b3f82ad98b9491802db6f6a979d32
LayoutTests:

        Reviewed by levi

        <rdar://problem/4548238>
        REGRESSION: Can't remove the first OL/UL list item in a Mail's compose window

        * editing/deleting/delete-first-list-item-expected.checksum: Added.
        * editing/deleting/delete-first-list-item-expected.png: Added.
        * editing/deleting/delete-first-list-item-expected.txt: Added.
        * editing/deleting/delete-first-list-item.html: Added.

WebCore:

        Reviewed by levi

        <rdar://problem/4548238>
        REGRESSION: Can't remove the first OL/UL list item in a Mail's compose window

        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::breakOutOfEmptyListItem):
        Moved from InsertParagraphSeparator.  Does its own typing style restoration.
        * editing/CompositeEditCommand.h:
        * editing/InsertParagraphSeparatorCommand.cpp:
        (WebCore::InsertParagraphSeparatorCommand::doApply): Call breakOutOfEmptyListItem.
        * editing/TypingCommand.cpp:
        (WebCore::TypingCommand::deleteKeyPressed): Call breakOutOfEmptyListItem if
        the endingSelection is at the start of an editable region.
        * editing/htmlediting.cpp:
        (WebCore::embeddedSublist): Moved from InsertParagraphSeparator.
        (WebCore::appendedSublist): Ditto.
        (WebCore::enclosingEmptyListItem): Ditto.
        * editing/htmlediting.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15563 268f45cc-cd09-0410-ab3c-d52691b4dbfc
14 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/deleting/delete-first-list-item-expected.checksum [new file with mode: 0644]
LayoutTests/editing/deleting/delete-first-list-item-expected.png [new file with mode: 0644]
LayoutTests/editing/deleting/delete-first-list-item-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-first-list-item.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/dom/NodeIterator.cpp
WebCore/editing/CompositeEditCommand.cpp
WebCore/editing/CompositeEditCommand.h
WebCore/editing/DeleteSelectionCommand.cpp
WebCore/editing/InsertParagraphSeparatorCommand.cpp
WebCore/editing/TypingCommand.cpp
WebCore/editing/htmlediting.cpp
WebCore/editing/htmlediting.h