LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Jul 2006 19:49:10 +0000 (19:49 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 31 Jul 2006 19:49:10 +0000 (19:49 +0000)
commitff95e5ac19c457cb03c3be1ae5e17dc5dee3050b
treeb3ee471475125b61d102de34c816715bfa4f4612
parent64592044c640dd51ea287b1f06bf0abe2e07fdff
LayoutTests:

        Reviewed by justin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=9507>
        Empty style spans created in applyInlineStyle
        <rdar://problem/4515463>
        REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page

        * editing/pasteboard/paste-4039777-fix-expected.txt:
        * editing/pasteboard/testcase-9507-expected.checksum: Added.
        * editing/pasteboard/testcase-9507-expected.png: Added.
        * editing/pasteboard/testcase-9507-expected.txt: Added.
        * editing/pasteboard/testcase-9507.html: Added.
        * editing/unsupported-content/table-delete-001-expected.txt:
        * editing/selection/selectNode-expected.png:
        * editing/selection/selectNode-expected.checksum:
        * editing/selection/selectNode-expected.txt:

WebCore:

        Reviewed by justin

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=9507>
        Empty style spans created in applyInlineStyle

        Improves paste fidelity because some of these empty font/style spans had a non-zero
        size and were messing up the layout of pasted content:
        <rdar://problem/4515463>
        REGRESSION: Blot and Mail both do a very poor job of pasting the main www.apple.com page

        * editing/ApplyStyleCommand.cpp:
        (WebCore::ApplyStyleCommand::applyInlineStyle): Use the adjusted start node instead
        of start.node().  Don't do any application if the endpoints are swapped.  Adjust
        endNode if the start node is a descendant of it, so that the pre-order traversal will
        terminate properly.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15714 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/paste-4039777-fix-expected.txt
LayoutTests/editing/pasteboard/testcase-9507-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/testcase-9507-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/testcase-9507-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/testcase-9507.html [new file with mode: 0644]
LayoutTests/editing/unsupported-content/table-delete-001-expected.txt
WebCore/ChangeLog
WebCore/editing/ApplyStyleCommand.cpp