LayoutTests:
authorlweintraub <lweintraub@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2006 00:53:53 +0000 (00:53 +0000)
committerlweintraub <lweintraub@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 9 May 2006 00:53:53 +0000 (00:53 +0000)
commite4ee8847288569b5eea01b00ba633bce9145ef69
tree1ca44eb117541305e532b9bf1006615c6a162c06
parentd76d630dc636a1a547c3b88cc00be9a2d081c4dd
LayoutTests:

        Reviewed by justin.

        REGRESSION: two editing layout tests show incorrect spell checking in pixel test mode
        http://bugzilla.opendarwin.org/show_bug.cgi?id=8350

        * editing/pasteboard/innerText-inline-table-expected.checksum: Added.
        * editing/pasteboard/innerText-inline-table-expected.png: Added.
        * editing/pasteboard/innerText-inline-table-expected.txt: Added.
        * editing/pasteboard/innerText-inline-table.html: Added.

WebCore:

        Reviewed by justin.

        * editing/TextIterator.cpp:
        (WebCore::shouldEmitSpaceBeforeAndAfterNode):
        Returns true when the node should have a leading and trailing space. Currently only
        used for inline tables. The function shouldEmitNewlinesBeforeAndAfterNode has a
        fallback for nodes with no RenderObject, but the inline property doesn't really
        have a meaning without one.
        (WebCore::TextIterator::handleNonTextNode):
        Checks shouldEmitSpaceBeforeAndAfterNode and inserts a space if necessary.
        (WebCore::TextIterator::exitNode):
        Checks shouldEmitSpaceBeforeAndAfterNode and inserts a space if necessary.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14248 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/editing/pasteboard/innerText-inline-table-expected.checksum [new file with mode: 0644]
LayoutTests/editing/pasteboard/innerText-inline-table-expected.png [new file with mode: 0644]
LayoutTests/editing/pasteboard/innerText-inline-table-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/innerText-inline-table.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/TextIterator.cpp