| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright 2005 Frerich Raabe <raabe@kde.org> |
| 3 * Copyright (C) 2006 Apple Computer, Inc. | 3 * Copyright (C) 2006 Apple Computer, Inc. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
| 7 * are met: | 7 * are met: |
| 8 * | 8 * |
| 9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
| 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
| 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF | 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
| 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
| 25 */ | 25 */ |
| 26 | 26 |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/xml/XPathValue.h" | 28 #include "core/xml/XPathValue.h" |
| 29 | 29 |
| 30 #include <limits> | 30 #include <limits> |
| 31 #include "core/dom/Node.h" | |
| 32 #include "core/xml/XPathExpressionNode.h" | 31 #include "core/xml/XPathExpressionNode.h" |
| 33 #include "core/xml/XPathUtil.h" | 32 #include "core/xml/XPathUtil.h" |
| 34 #include <wtf/MathExtras.h> | 33 #include <wtf/MathExtras.h> |
| 35 #include <wtf/StdLibExtras.h> | 34 #include <wtf/StdLibExtras.h> |
| 36 | 35 |
| 37 using std::numeric_limits; | 36 using std::numeric_limits; |
| 38 | 37 |
| 39 namespace WebCore { | 38 namespace WebCore { |
| 40 namespace XPath { | 39 namespace XPath { |
| 41 | 40 |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 return String::number(m_number); | 131 return String::number(m_number); |
| 133 case BooleanValue: | 132 case BooleanValue: |
| 134 return m_bool ? "true" : "false"; | 133 return m_bool ? "true" : "false"; |
| 135 } | 134 } |
| 136 ASSERT_NOT_REACHED(); | 135 ASSERT_NOT_REACHED(); |
| 137 return String(); | 136 return String(); |
| 138 } | 137 } |
| 139 | 138 |
| 140 } | 139 } |
| 141 } | 140 } |
| OLD | NEW |