Reviewed by Maciej.
authorthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Dec 2005 09:13:26 +0000 (09:13 +0000)
committerthatcher <thatcher@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 2 Dec 2005 09:13:26 +0000 (09:13 +0000)
commite4a0af2a4668dd7b9f418954dd215e922e28ab8f
tree0b6d961daa5c951067c553f18995cda35a25d061
parenta4b00468a0079b240ad2794e23ca18fc94aa9cc2
    Reviewed by Maciej.

        Cache the lastItem and lastItemOffset for fast retrieval of the
        same index or indeicies greater than lastItemOffset. Also cache
        the length. Like other node lists these cached values rest when the
        subtree under the root node changes.

        * khtml/xml/dom_nodeimpl.cpp:
        (ChildNodeListImpl::length): Use cachedLength when possible.
        (ChildNodeListImpl::item): Use lastItemOffset and lastItem if we can.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@11396 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-12-19
WebCore/khtml/xml/dom_nodeimpl.cpp