LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Oct 2006 23:37:04 +0000 (23:37 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 31 Oct 2006 23:37:04 +0000 (23:37 +0000)
commit9c33d391de22db70bce88f781596839d91235c50
treeea09d565bf73ec53fbe0d823a3d6205d2dc61252
parentd74c3d8ccaeaf20ad8f6e0550bd6f6ebf74f9640
LayoutTests:

        Reviewed by harrison

        Updated these tests to mention the bug that they demonstrate:
        * editing/pasteboard/nested-blocks-with-text-area-expected.checksum:
        * editing/pasteboard/nested-blocks-with-text-area-expected.png:
        * editing/pasteboard/nested-blocks-with-text-area-expected.txt:
        * editing/pasteboard/nested-blocks-with-text-area.html:
        * editing/pasteboard/nested-blocks-with-text-field-expected.checksum:
        * editing/pasteboard/nested-blocks-with-text-field-expected.png:
        * editing/pasteboard/nested-blocks-with-text-field-expected.txt:
        * editing/pasteboard/nested-blocks-with-text-field.html:

WebCore:

        Reviewed by harrison

        <rdar://problem/4711063>
        Pasting 10K lines into Mail/Blot takes ~7sec, in TextEdit it takes ~1.5sec

        * editing/ReplaceSelectionCommand.cpp:
        (WebCore::ReplacementFragment::ReplacementFragment): Don't do the test
        insertion and plain text string creation unless we need the string
        for a BeforeTextInserted event handler or for a plain text only region.
        (WebCore::ReplacementFragment::removeInterchangeNodes): Added, moved
        code here from ReplacementFragment's constructor.
        (WebCore::ReplaceSelectionCommand::completeHTMLReplacement): Added a
        FIXME.
        * editing/ReplaceSelectionCommand.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17503 268f45cc-cd09-0410-ab3c-d52691b4dbfc
13 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/nested-blocks-with-text-area-expected.checksum
LayoutTests/editing/pasteboard/nested-blocks-with-text-area-expected.png
LayoutTests/editing/pasteboard/nested-blocks-with-text-area-expected.txt
LayoutTests/editing/pasteboard/nested-blocks-with-text-area.html
LayoutTests/editing/pasteboard/nested-blocks-with-text-field-expected.checksum
LayoutTests/editing/pasteboard/nested-blocks-with-text-field-expected.png
LayoutTests/editing/pasteboard/nested-blocks-with-text-field-expected.txt
LayoutTests/editing/pasteboard/nested-blocks-with-text-field.html
LayoutTests/editing/selection/drag-to-contenteditable-iframe-expected.txt
WebCore/ChangeLog
WebCore/editing/ReplaceSelectionCommand.cpp
WebCore/editing/ReplaceSelectionCommand.h