-
justing authored
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: http://svn.webkit.org/repository/webkit/trunk@27495 268f45cc-cd09-0410-ab3c-d52691b4dbfc
50fa2ccf