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 #ifndef XPathUtil_h | 27 #ifndef XPathUtil_h |
28 #define XPathUtil_h | 28 #define XPathUtil_h |
29 | 29 |
30 #include "wtf/Forward.h" | 30 #include "wtf/Forward.h" |
31 #include "wtf/Vector.h" | |
32 | 31 |
33 namespace blink { | 32 namespace blink { |
34 | 33 |
35 class Node; | 34 class Node; |
36 | 35 |
37 namespace XPath { | 36 namespace XPath { |
38 | 37 |
39 // @return whether the given node is the root node | 38 // @return whether the given node is the root node |
40 bool isRootDomNode(Node*); | 39 bool isRootDomNode(Node*); |
41 | 40 |
42 // @return the 'string-value' of the given node as specified by http://www.w3.or
g/TR/xpath | 41 // @return the 'string-value' of the given node as specified by http://www.w3.or
g/TR/xpath |
43 String stringValue(Node*); | 42 String stringValue(Node*); |
44 | 43 |
45 // @return whether the given node is a valid context node | 44 // @return whether the given node is a valid context node |
46 bool isValidContextNode(Node*); | 45 bool isValidContextNode(Node*); |
47 | 46 |
48 } | 47 } |
49 | 48 |
50 } | 49 } |
51 #endif // XPathUtil_h | 50 #endif // XPathUtil_h |
OLD | NEW |