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 22 matching lines...) Expand all Loading... |
33 #include "wtf/Forward.h" | 33 #include "wtf/Forward.h" |
34 #include "wtf/RefCounted.h" | 34 #include "wtf/RefCounted.h" |
35 | 35 |
36 namespace WebCore { | 36 namespace WebCore { |
37 | 37 |
38 class Document; | 38 class Document; |
39 class ExceptionState; | 39 class ExceptionState; |
40 class Node; | 40 class Node; |
41 | 41 |
42 class XPathResult : public RefCountedWillBeGarbageCollectedFinalized<XPathResult
>, public ScriptWrappable { | 42 class XPathResult : public RefCountedWillBeGarbageCollectedFinalized<XPathResult
>, public ScriptWrappable { |
43 DECLARE_GC_INFO; | |
44 public: | 43 public: |
45 enum XPathResultType { | 44 enum XPathResultType { |
46 ANY_TYPE = 0, | 45 ANY_TYPE = 0, |
47 NUMBER_TYPE = 1, | 46 NUMBER_TYPE = 1, |
48 STRING_TYPE = 2, | 47 STRING_TYPE = 2, |
49 BOOLEAN_TYPE = 3, | 48 BOOLEAN_TYPE = 3, |
50 UNORDERED_NODE_ITERATOR_TYPE = 4, | 49 UNORDERED_NODE_ITERATOR_TYPE = 4, |
51 ORDERED_NODE_ITERATOR_TYPE = 5, | 50 ORDERED_NODE_ITERATOR_TYPE = 5, |
52 UNORDERED_NODE_SNAPSHOT_TYPE = 6, | 51 UNORDERED_NODE_SNAPSHOT_TYPE = 6, |
53 ORDERED_NODE_SNAPSHOT_TYPE = 7, | 52 ORDERED_NODE_SNAPSHOT_TYPE = 7, |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 unsigned m_nodeSetPosition; | 85 unsigned m_nodeSetPosition; |
87 XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_v
alue? | 86 XPath::NodeSet m_nodeSet; // FIXME: why duplicate the node set stored in m_v
alue? |
88 unsigned short m_resultType; | 87 unsigned short m_resultType; |
89 RefPtr<Document> m_document; | 88 RefPtr<Document> m_document; |
90 uint64_t m_domTreeVersion; | 89 uint64_t m_domTreeVersion; |
91 }; | 90 }; |
92 | 91 |
93 } // namespace WebCore | 92 } // namespace WebCore |
94 | 93 |
95 #endif // XPathResult_h | 94 #endif // XPathResult_h |
OLD | NEW |