LayoutTests:
Reviewed by darin
<http://bugzilla.opendarwin.org/show_bug.cgi?id=8402>
Fix interchange newline handling and avoid use of test rendering info
* editing/pasteboard/interchange-newline-1-expected.checksum: Added.
* editing/pasteboard/interchange-newline-1-expected.png: Added.
* editing/pasteboard/interchange-newline-1-expected.txt: Added.
* editing/pasteboard/interchange-newline-1.html: Added.
* editing/pasteboard/interchange-newline-2-expected.checksum: Added.
* editing/pasteboard/interchange-newline-2-expected.png: Added.
* editing/pasteboard/interchange-newline-2-expected.txt: Added.
* editing/pasteboard/interchange-newline-2.html: Added.
* editing/pasteboard/interchange-newline-3-expected.checksum: Added.
* editing/pasteboard/interchange-newline-3-expected.png: Added.
* editing/pasteboard/interchange-newline-3-expected.txt: Added.
* editing/pasteboard/interchange-newline-3.html: Added.
WebCore:
Reviewed by darin
<http://bugzilla.opendarwin.org/show_bug.cgi?id=8402>
Fix interchange newline handling and avoid use of test rendering info
* editing/ReplaceSelectionCommand.cpp:
(WebCore::ReplaceSelectionCommand::doApply):
Fixed bugs in handling of interchange newlines at the end of incoming
fragments. Removed the use of !fragment.isBlockFlow since it isn't
correct and relies on information gathered during the test insertion, which
we're trying to get rid of.
* editing/VisiblePosition.h:
(WebCore::VisiblePosition::rootEditableElement): Added for convenience.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13896
268f45cc-cd09-0410-ab3c-
d52691b4dbfc