LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Apr 2006 20:14:16 +0000 (20:14 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 17 Apr 2006 20:14:16 +0000 (20:14 +0000)
commit7bca768ed05749be1f2a894f2bb6a9a04431a880
treec397bb626f5cbc24468ae5762300a7f63e14e2cf
parent2ce2ae6f33f58b2a4552e82f751333bfa109fe86
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
16 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/interchange-newline-1-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-1-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-1-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-1.html [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-2-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-2-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-2-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-2.html [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-3-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-3-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-3-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/interchange-newline-3.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/editing/VisiblePosition.h