Reviewed by Sam Weinig.
authorap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2007 06:03:27 +0000 (06:03 +0000)
committerap <ap@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 7 Mar 2007 06:03:27 +0000 (06:03 +0000)
commitb770f42ef79c77da0049ab5cf6eaf2866400ec25
tree4c3a08c9ab230cd303309793de8538da0e37136d
parentefe8072a1e99d69494e0c18eda99a1a208e78899
    Reviewed by Sam Weinig.

        http://bugs.webkit.org/show_bug.cgi?id=12987
        Fix and import 4XPath test_numeric_expr.html

        * xml/XPathPredicate.cpp:
        (WebCore::XPath::Negative::doEvaluate): Convert the argument to number.
        (WebCore::XPath::NumericOp::doEvaluate): Convert the arguments to numbers. Use a correct operation for mod.
        * xml/XPathStep.cpp:
        (WebCore::XPath::Step::nodesInAxis): Do not append parent node if there is none.
        * xml/XPathValue.cpp:
        (WebCore::XPath::Value::toNumber): Do not convert to DeprecatedString just to trim whitespace and to convert to double.
        * platform/DeprecatedString.cpp:
        (WebCore::DeprecatedStringData::makeAscii): Added a FIXME about unreliable makeAscii() behavior.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@20008 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/xpath/4XPath/Core/test_numeric_expr-expected.txt
LayoutTests/fast/xpath/4XPath/Core/test_numeric_expr.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/platform/DeprecatedString.cpp
WebCore/xml/XPathPredicate.cpp
WebCore/xml/XPathStep.cpp
WebCore/xml/XPathValue.cpp