WebCore:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 01:13:47 +0000 (01:13 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Nov 2007 01:13:47 +0000 (01:13 +0000)
commit61a22a61d1d61d0628683aa24817762881827e8b
tree16c9e0201b85c38b538f960810ac999a76af8689
parent1a2f9e12dc7c5907ce50f7030d27b69037558d1d
WebCore:

        Reviewed by Dan Bernstein.

        <rdar://problem/5583387> ASSERTION FAILED: !refChild->hasTagName(bodyTag) when pasting newline in plain text into rich text Mail
        <rdar://problem/5583362> REGRESSION (5523.10.3-TOT): Newlines stripped when pasting plain text in Mail

        * editing/markup.cpp:
        (WebCore::createFragmentFromText): Put paragraphs of text into clones of the block
        that encloses the input context, unless that block is the body, which shouldn't
        be cloned.  In that case, use regular divs, as we did before r27369.

LayoutTests:

        Reviewed by Dan Bernstein.

        <rdar://problem/5583387> ASSERTION FAILED: !refChild->hasTagName(bodyTag) when pasting newline in plain text into rich text Mail
        <rdar://problem/5583362> REGRESSION (5523.10.3-TOT): Newlines stripped when pasting plain text in Mail

        * editing/pasteboard/5583362.html: Added.
        * editing/resources/plaintext-pasteboard-data.dat: Added.
        * platform/mac/editing/pasteboard/5583362-expected.checksum: Added.
        * platform/mac/editing/pasteboard/5583362-expected.png: Added.
        * platform/mac/editing/pasteboard/5583362-expected.txt: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/5583362.html [new file with mode: 0644]
LayoutTests/editing/resources/plaintext-pasteboard-data.dat [new file with mode: 0644]
LayoutTests/platform/mac/editing/pasteboard/5583362-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/editing/pasteboard/5583362-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/pasteboard/5583362-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/markup.cpp