Reviewed by harrison
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Oct 2006 23:25:05 +0000 (23:25 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 30 Oct 2006 23:25:05 +0000 (23:25 +0000)
commit44edbe18d2d56c8b4751314850fb31c9e52feea5
tree6946ea9d757664cf1f301c3b020b55ba421acc08
parent3c34649b59eeef0f5ab85f18c6ed0b70cac08ea9
    Reviewed by harrison

        <rdar://problem/4808375>
        REGRESSION: TextIterator slowed down, affecting Find on Page & Copy (etc.) (11460)

        * editing/TextIterator.cpp:
        (WebCore::TextIterator::exitNode): Only create VisiblePositions
        when we're going to use them to create a range for an emitted character.
        We should further speed TextIterators up by avoiding creating VisiblePositions
        for TIs that are only used for the characters they emit (like the one that
        plainText uses).

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@17449 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/editing/TextIterator.cpp