WebCore:
Reviewed by Harrison.
<rdar://problem/5483567> REGRESSION (Tiger only): Pasting words copied from TextEdit in Mail adds extra newline
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::removeUnrenderedTextNodesAtEnds): Added.
We would like to insert the fragment as-is if possible, but AppKit on Tiger
creates fragments from RTF data that have carriage returns and spaces at the
beginning and end, and those need to be removed since they'll interfere with
paragraph merging.
(WebCore::ReplaceSelectionCommand::doApply):
* editing/ReplaceSelectionCommand.h:
LayoutTests:
Reviewed by Harrison.
<rdar://problem/5483567> REGRESSION (Tiger only): Pasting words copied from TextEdit in Mail adds extra newline
Re-enabling this test:
* editing/pasteboard/5483567.html: Added.
* editing/pasteboard/5483567.html-disabled: Removed.
Also demonstrates fix:
* platform/mac/editing/pasteboard/paste-RTFD-expected.checksum:
* platform/mac/editing/pasteboard/paste-RTFD-expected.png:
* platform/mac/editing/pasteboard/paste-RTFD-expected.txt:
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@26374
268f45cc-cd09-0410-ab3c-
d52691b4dbfc