Reviewed by Adele
authormjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jun 2006 20:36:20 +0000 (20:36 +0000)
committermjs <mjs@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 27 Jun 2006 20:36:20 +0000 (20:36 +0000)
commite2db4f9a42c9e3368f71838c9ab6240862ee2a88
treefb63503a4c6f6b70d2dcf23e8b9ae609aa487846
parentd186c4ac1dd2c3de6645f8f7468ab1e854aa709f
    Reviewed by Adele

        - fixed <rdar://problem/4550473> Reproducible hang on www.digg.com

        * dom/NodeList.cpp:
        (WebCore::NodeList::recursiveItem): Make NodeList caching also
        work for backwards iteration - if the requested index is before
        the last cached, but closer to it than to the start of the list,
        then search backwards from there.
        (WebCore::NodeList::itemForwardsFromCurrent): Split this out as a
        helper method.
        (WebCore::NodeList::itemBackwardsFromCurrent): New helper, similar
        to the above.
        * dom/NodeList.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15057 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/dom/NodeList.cpp
WebCore/dom/NodeList.h