WebCore:
authorjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2008 00:16:43 +0000 (00:16 +0000)
committerjustin.garcia@apple.com <justin.garcia@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 31 Jan 2008 00:16:43 +0000 (00:16 +0000)
commit224cf11333d077e0794220e42996f768218ebd2b
tree892d8b68aecbb9a1ba6c4ba38cc4d897affc9cf4
parentaa933184860e3b76f4641cb30ad05e22b3e42c01
WebCore:

        Reviewed by Darin Adler.

        <rdar://problem/5700414> REGRESSION (Adama-ToT): Selecting "Header 1" style in Leopard Server wiki inserts newline

        * editing/FormatBlockCommand.cpp:
        (WebCore::FormatBlockCommand::doApply): If the selected paragraph was empty,
        we may still need to call moveParagrah to remove the line break that holds that
        paragraph open because the new block of the requested type needs to to replace it.

LayoutTests:

        Reviewed by Darin Adler.

        <rdar://problem/5700414> REGRESSION (Adama-ToT): Selecting "Header 1" style in Leopard Server wiki inserts newline

        * editing/execCommand/5700414-1.html: Added.
        * editing/execCommand/5700414-2.html: Added.
        * platform/mac/editing/execCommand/5700414-1-expected.checksum: Added.
        * platform/mac/editing/execCommand/5700414-1-expected.png: Added.
        * platform/mac/editing/execCommand/5700414-1-expected.txt: Added.
        * platform/mac/editing/execCommand/5700414-2-expected.checksum: Added.
        * platform/mac/editing/execCommand/5700414-2-expected.png: Added.
        * platform/mac/editing/execCommand/5700414-2-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@29877 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/execCommand/5700414-1.html [new file with mode: 0644]
LayoutTests/editing/execCommand/5700414-2.html [new file with mode: 0644]
LayoutTests/platform/mac/editing/execCommand/5700414-1-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/editing/execCommand/5700414-1-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/execCommand/5700414-1-expected.txt [new file with mode: 0644]
LayoutTests/platform/mac/editing/execCommand/5700414-2-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/editing/execCommand/5700414-2-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/execCommand/5700414-2-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/FormatBlockCommand.cpp