Reviewed by Darin.
authorap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Nov 2007 06:04:45 +0000 (06:04 +0000)
committerap@webkit.org <ap@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 16 Nov 2007 06:04:45 +0000 (06:04 +0000)
commitbef7db688fd1e48c8fa2886b6ab0f6fa3105fddb
tree75bae4583b52c283af6dd67ebd115ad56763d343
parent47e4f41fd696ce4f9bac9290f669f893345b0cd4
    Reviewed by Darin.

        http://bugs.webkit.org/show_bug.cgi?id=15989
        XPath queries with predicates incorrectly retains the current node across unions

        Test: fast/xpath/union-context-node.xhtml

        * xml/XPathPath.cpp:
        (WebCore::XPath::LocationPath::evaluate): Restore context after evaluation.
        * xml/XPathStep.cpp:
        (WebCore::XPath::Step::evaluate): Do not backup context, as we can easily re-create it.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27837 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/union-context-node-expected.txt [new file with mode: 0644]
LayoutTests/fast/xpath/union-context-node.xhtml [new file with mode: 0644]
WebCore/ChangeLog
WebCore/xml/XPathPath.cpp
WebCore/xml/XPathStep.cpp