| 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 26 matching lines...) Expand all Loading... |
| 37 class Document; | 37 class Document; |
| 38 class ExceptionState; | 38 class ExceptionState; |
| 39 class Node; | 39 class Node; |
| 40 | 40 |
| 41 namespace XPath { | 41 namespace XPath { |
| 42 struct EvaluationContext; | 42 struct EvaluationContext; |
| 43 } | 43 } |
| 44 | 44 |
| 45 // TODO(Oilpan): remove Finalized when transition type for m_document is. | 45 // TODO(Oilpan): remove Finalized when transition type for m_document is. |
| 46 class XPathResult final : public GarbageCollectedFinalized<XPathResult>, public
ScriptWrappable { | 46 class XPathResult final : public GarbageCollectedFinalized<XPathResult>, public
ScriptWrappable { |
| 47 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(XPathResult); | |
| 48 DEFINE_WRAPPERTYPEINFO(); | 47 DEFINE_WRAPPERTYPEINFO(); |
| 49 public: | 48 public: |
| 50 enum XPathResultType { | 49 enum XPathResultType { |
| 51 ANY_TYPE = 0, | 50 ANY_TYPE = 0, |
| 52 NUMBER_TYPE = 1, | 51 NUMBER_TYPE = 1, |
| 53 STRING_TYPE = 2, | 52 STRING_TYPE = 2, |
| 54 BOOLEAN_TYPE = 3, | 53 BOOLEAN_TYPE = 3, |
| 55 UNORDERED_NODE_ITERATOR_TYPE = 4, | 54 UNORDERED_NODE_ITERATOR_TYPE = 4, |
| 56 ORDERED_NODE_ITERATOR_TYPE = 5, | 55 ORDERED_NODE_ITERATOR_TYPE = 5, |
| 57 UNORDERED_NODE_SNAPSHOT_TYPE = 6, | 56 UNORDERED_NODE_SNAPSHOT_TYPE = 6, |
| (...skipping 26 matching lines...) Expand all Loading... |
| 84 DECLARE_TRACE(); | 83 DECLARE_TRACE(); |
| 85 | 84 |
| 86 private: | 85 private: |
| 87 XPathResult(XPath::EvaluationContext&, const XPath::Value&); | 86 XPathResult(XPath::EvaluationContext&, const XPath::Value&); |
| 88 XPath::NodeSet& nodeSet() { return *m_nodeSet; } | 87 XPath::NodeSet& nodeSet() { return *m_nodeSet; } |
| 89 | 88 |
| 90 XPath::Value m_value; | 89 XPath::Value m_value; |
| 91 unsigned m_nodeSetPosition; | 90 unsigned m_nodeSetPosition; |
| 92 Member<XPath::NodeSet> m_nodeSet; // FIXME: why duplicate the node set store
d in m_value? | 91 Member<XPath::NodeSet> m_nodeSet; // FIXME: why duplicate the node set store
d in m_value? |
| 93 unsigned short m_resultType; | 92 unsigned short m_resultType; |
| 94 RefPtrWillBeMember<Document> m_document; | 93 Member<Document> m_document; |
| 95 uint64_t m_domTreeVersion; | 94 uint64_t m_domTreeVersion; |
| 96 }; | 95 }; |
| 97 | 96 |
| 98 } // namespace blink | 97 } // namespace blink |
| 99 | 98 |
| 100 #endif // XPathResult_h | 99 #endif // XPathResult_h |
| OLD | NEW |