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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 void convertTo(unsigned short type, ExceptionCode&); | 60 void convertTo(unsigned short type, ExceptionCode&); |
61 | 61 |
62 unsigned short resultType() const; | 62 unsigned short resultType() const; |
63 | 63 |
64 double numberValue(ExceptionCode&) const; | 64 double numberValue(ExceptionCode&) const; |
65 String stringValue(ExceptionCode&) const; | 65 String stringValue(ExceptionCode&) const; |
66 bool booleanValue(ExceptionCode&) const; | 66 bool booleanValue(ExceptionCode&) const; |
67 Node* singleNodeValue(ExceptionCode&) const; | 67 Node* singleNodeValue(ExceptionCode&) const; |
68 | 68 |
69 bool invalidIteratorState() const; | 69 bool invalidIteratorState() const; |
70 unsigned long snapshotLength(ExceptionCode&) const; | 70 unsigned snapshotLength(ExceptionCode&) const; |
71 Node* iterateNext(ExceptionCode&); | 71 Node* iterateNext(ExceptionCode&); |
72 Node* snapshotItem(unsigned long index, ExceptionCode&); | 72 Node* snapshotItem(unsigned index, ExceptionCode&); |
73 | 73 |
74 const XPath::Value& value() const { return m_value; } | 74 const XPath::Value& value() const { return m_value; } |
75 | 75 |
76 private: | 76 private: |
77 XPathResult(Document*, const XPath::Value&); | 77 XPathResult(Document*, const XPath::Value&); |
78 | 78 |
79 XPath::Value m_value; | 79 XPath::Value m_value; |
80 unsigned m_nodeSetPosition; | 80 unsigned m_nodeSetPosition; |
81 XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_v
alue? | 81 XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_v
alue? |
82 unsigned short m_resultType; | 82 unsigned short m_resultType; |
83 RefPtr<Document> m_document; | 83 RefPtr<Document> m_document; |
84 uint64_t m_domTreeVersion; | 84 uint64_t m_domTreeVersion; |
85 }; | 85 }; |
86 | 86 |
87 } // namespace WebCore | 87 } // namespace WebCore |
88 | 88 |
89 #endif // XPathResult_h | 89 #endif // XPathResult_h |
OLD | NEW |