WebCore:
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Sep 2007 17:23:22 +0000 (17:23 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 18 Sep 2007 17:23:22 +0000 (17:23 +0000)
commit334214a99b6c5a9f1fc25d6adfac38b41f5af3bd
tree2d8fe00bf28e8b1af9c7b30b852e2c35a6c76d97
parent0e0c700b3dcc385fa35389887e0aaa9e16dea51f
WebCore:

        Reviewed by Darin.

        <rdar://problem/5486974> REGRESSION(r25373): 1/4 second to doubleclick word in GMail when using Kotoeri IM, also slow in other IMs (15163)

        Updated tests:
        * fast/dom/Window/window-xy-properties-expected.txt:
        * fast/dom/plugin-attributes-enumeration-expected.txt:
        * fast/events/onerror-bubbling-expected.txt:
        * fast/events/related-target-expected.txt:
        * fast/forms/select-namedItem-expected.txt:
        * fast/table/incomplete-table-in-fragment-2-expected.txt:
        * fast/table/incomplete-table-in-fragment-hang-expected.txt:
        * fast/table/large-rowspan-crash-expected.txt:
        * plugins/embed-attributes-setting-expected.txt:

        * editing/TextIterator.cpp:
        (WebCore::TextIterator::shouldRepresentNodeOffsetZero):
        Avoid VisiblePosition check if the current node is a descendant
        of the start container and the start offset was 0. In that case
        we already had enough context to correctly decide whether to emit
        a newline after a preceding block. We chose not to emit
        (m_haveEmitted is false), so don't second guess that.

        (WebCore::TextIterator::exitNode):
        Changed some comments.

LayoutTests:

        Reviewed by Darin.

        Updated for:
        <rdar://problem/5486974> REGRESSION(r25373): 1/4 second to doubleclick word in GMail when using Kotoeri IM, also slow in other IMs (15163)

        NOTE: This reverts the test result changes I made for rdar://5472125, back to not emitting
        a newline for collapsed block or hr at start of range.

        * fast/dom/Window/window-xy-properties-expected.txt:
        * fast/dom/plugin-attributes-enumeration-expected.txt:
        * fast/events/onerror-bubbling-expected.txt:
        * fast/events/related-target-expected.txt:
        * fast/forms/select-namedItem-expected.txt:
        * fast/table/incomplete-table-in-fragment-2-expected.txt:
        * fast/table/incomplete-table-in-fragment-hang-expected.txt:
        * fast/table/large-rowspan-crash-expected.txt:
        * plugins/embed-attributes-setting-expected.txt:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25617 268f45cc-cd09-0410-ab3c-d52691b4dbfc
12 files changed:
LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-xy-properties-expected.txt
LayoutTests/fast/dom/plugin-attributes-enumeration-expected.txt
LayoutTests/fast/events/onerror-bubbling-expected.txt
LayoutTests/fast/events/related-target-expected.txt
LayoutTests/fast/forms/select-namedItem-expected.txt
LayoutTests/fast/table/incomplete-table-in-fragment-2-expected.txt
LayoutTests/fast/table/incomplete-table-in-fragment-hang-expected.txt
LayoutTests/fast/table/large-rowspan-crash-expected.txt
LayoutTests/plugins/embed-attributes-setting-expected.txt
WebCore/ChangeLog
WebCore/editing/TextIterator.cpp