WebCore:
Reviewed by Darin.
<rdar://problem/
5483567>
REGRESSION (Tiger only, workaround in AppKit on Leopard): Pasting words copied from TextEdit in Mail adds extra newline
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::removeUnrenderedNodes): Added.
(WebCore::ReplaceSelectionCommand::doApply): Call removeUnrenderedNodes
to prevent unrendered spaces from interfering with paragraph merging.
* editing/ReplaceSelectionCommand.h:
LayoutTests:
Reviewed by Darin.
<rdar://problem/
5483567>
REGRESSION (Tiger only, workaround in AppKit on Leopard): Pasting words copied from TextEdit in Mail adds extra newline
Demonstrate fix:
* editing/pasteboard/
5483567.html: Added.
* platform/mac/editing/pasteboard/
5483567-expected.checksum: Added.
* platform/mac/editing/pasteboard/
5483567-expected.png: Added.
* platform/mac/editing/pasteboard/
5483567-expected.txt: Added.
Unrendered nodes removed:
* editing/pasteboard/nested-blocks-with-text-area-expected.txt:
* editing/pasteboard/nested-blocks-with-text-field-expected.txt:
* editing/pasteboard/paste-RTFD-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25721
268f45cc-cd09-0410-ab3c-
d52691b4dbfc