Reviewed by John
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Jan 2005 22:55:22 +0000 (22:55 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Jan 2005 22:55:22 +0000 (22:55 +0000)
commitd8a12973fd21f954ea3271307b501d5f97806731
tree65c263a96857222f53f81a7ec1912c88b3ee77c1
parent3edc02aa735717ed98290ec6133e8347f7a24223
    Reviewed by John

        Fix for these two bugs:

        <rdar://problem/3938935> REGRESSION (Mail): Pasting into an empty document mangles content
        <rdar://problem/3939148> REGRESSION (Mail): Pasting mistakenly reverses lines

        * khtml/editing/htmlediting.cpp:
        (khtml::ReplaceSelectionCommand::doApply): For 3938935, add one more case to handle an empty document; merge
        neither start nor end. For 3939148, improve the code which adjusts the insertion point during
        the process of pasting. It formerly handled only one of the possible cases.
        * layout-tests/editing/pasteboard/paste-text-015-expected.txt: Added.
        * layout-tests/editing/pasteboard/paste-text-015.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8296 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/pasteboard/paste-text-015-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-text-015.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp