| 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 16 matching lines...) Expand all Loading... |
| 27 #include "config.h" | 27 #include "config.h" |
| 28 #include "core/xml/XPathExpression.h" | 28 #include "core/xml/XPathExpression.h" |
| 29 | 29 |
| 30 #include "bindings/v8/ExceptionState.h" | 30 #include "bindings/v8/ExceptionState.h" |
| 31 #include "core/dom/ExceptionCode.h" | 31 #include "core/dom/ExceptionCode.h" |
| 32 #include "core/xml/XPathExpressionNode.h" | 32 #include "core/xml/XPathExpressionNode.h" |
| 33 #include "core/xml/XPathNSResolver.h" | 33 #include "core/xml/XPathNSResolver.h" |
| 34 #include "core/xml/XPathParser.h" | 34 #include "core/xml/XPathParser.h" |
| 35 #include "core/xml/XPathResult.h" | 35 #include "core/xml/XPathResult.h" |
| 36 #include "core/xml/XPathUtil.h" | 36 #include "core/xml/XPathUtil.h" |
| 37 #include <wtf/text/WTFString.h> | 37 #include "wtf/text/WTFString.h" |
| 38 | 38 |
| 39 namespace WebCore { | 39 namespace WebCore { |
| 40 | 40 |
| 41 using namespace XPath; | 41 using namespace XPath; |
| 42 | 42 |
| 43 PassRefPtr<XPathExpression> XPathExpression::createExpression(const String& expr
ession, XPathNSResolver* resolver, ExceptionState& es) | 43 PassRefPtr<XPathExpression> XPathExpression::createExpression(const String& expr
ession, XPathNSResolver* resolver, ExceptionState& es) |
| 44 { | 44 { |
| 45 RefPtr<XPathExpression> expr = XPathExpression::create(); | 45 RefPtr<XPathExpression> expr = XPathExpression::create(); |
| 46 Parser parser; | 46 Parser parser; |
| 47 | 47 |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 if (type != XPathResult::ANY_TYPE) { | 81 if (type != XPathResult::ANY_TYPE) { |
| 82 result->convertTo(type, es); | 82 result->convertTo(type, es); |
| 83 if (es.hadException()) | 83 if (es.hadException()) |
| 84 return 0; | 84 return 0; |
| 85 } | 85 } |
| 86 | 86 |
| 87 return result; | 87 return result; |
| 88 } | 88 } |
| 89 | 89 |
| 90 } | 90 } |
| OLD | NEW |