2009-02-02 Darin Adler <darin@apple.com>
authordarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Feb 2009 20:11:08 +0000 (20:11 +0000)
committerdarin@apple.com <darin@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 2 Feb 2009 20:11:08 +0000 (20:11 +0000)
commita0e1e0be6522af907ebe1195e6200369cdb729c9
tree77a95e1be048121826664f9c00d25fb5b9f0c4ca
parent9a2e1f3f73707e9eb3c5ab69399c330d59744d2e
2009-02-02  Darin Adler  <darin@apple.com>

        Reviewed by Niko Zimmermann.

        Bug 23686: REGRESSION (r40475): Failure in fast/xpath/4XPath/Core/test_core_functions.html
        https://bugs.webkit.org/show_bug.cgi?id=23686
        rdar://problem/6547971

        Also fix other XPath tests that are crashing.

        * xml/XPathFunctions.cpp:
        (WebCore::XPath::FunLang::evaluate): Fix order of arguments when creating QualifiedName.
        * xml/XPathStep.cpp:
        (WebCore::XPath::Step::nodesInAxis): Use createAttrIfNeeded() rather than attr() since we
        need to make Attr nodes here. Yuck!

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@40484 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog
WebCore/xml/XPathFunctions.cpp
WebCore/xml/XPathStep.cpp