| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> | 2 * Copyright (C) 2005 Frerich Raabe <raabe@kde.org> |
| 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. | 3 * Copyright (C) 2006, 2009 Apple Inc. All rights reserved. |
| 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 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 #include "core/xml/XPathExpression.h" | 27 #include "core/xml/XPathExpression.h" |
| 28 | 28 |
| 29 #include "bindings/core/v8/ExceptionState.h" | 29 #include "bindings/core/v8/ExceptionState.h" |
| 30 #include "core/dom/ExceptionCode.h" | 30 #include "core/dom/ExceptionCode.h" |
| 31 #include "core/xml/XPathExpressionNode.h" | 31 #include "core/xml/XPathExpressionNode.h" |
| 32 #include "core/xml/XPathNSResolver.h" | 32 #include "core/xml/XPathNSResolver.h" |
| 33 #include "core/xml/XPathParser.h" | 33 #include "core/xml/XPathParser.h" |
| 34 #include "core/xml/XPathResult.h" | 34 #include "core/xml/XPathResult.h" |
| 35 #include "core/xml/XPathUtil.h" | 35 #include "core/xml/XPathUtil.h" |
| 36 #include "wtf/text/WTFString.h" | 36 #include "platform/wtf/text/WTFString.h" |
| 37 | 37 |
| 38 namespace blink { | 38 namespace blink { |
| 39 | 39 |
| 40 using namespace XPath; | 40 using namespace XPath; |
| 41 | 41 |
| 42 XPathExpression::XPathExpression() {} | 42 XPathExpression::XPathExpression() {} |
| 43 | 43 |
| 44 XPathExpression* XPathExpression::CreateExpression( | 44 XPathExpression* XPathExpression::CreateExpression( |
| 45 const String& expression, | 45 const String& expression, |
| 46 XPathNSResolver* resolver, | 46 XPathNSResolver* resolver, |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 if (type != XPathResult::kAnyType) { | 88 if (type != XPathResult::kAnyType) { |
| 89 result->ConvertTo(type, exception_state); | 89 result->ConvertTo(type, exception_state); |
| 90 if (exception_state.HadException()) | 90 if (exception_state.HadException()) |
| 91 return nullptr; | 91 return nullptr; |
| 92 } | 92 } |
| 93 | 93 |
| 94 return result; | 94 return result; |
| 95 } | 95 } |
| 96 | 96 |
| 97 } // namespace blink | 97 } // namespace blink |
| OLD | NEW |