OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef NthIndexCache_h | 5 #ifndef NthIndexCache_h |
6 #define NthIndexCache_h | 6 #define NthIndexCache_h |
7 | 7 |
8 #include "core/CoreExport.h" | 8 #include "core/CoreExport.h" |
9 #include "core/dom/Element.h" | 9 #include "core/dom/Element.h" |
10 #include "platform/heap/Handle.h" | 10 #include "platform/heap/Handle.h" |
11 #include "wtf/HashMap.h" | 11 #include "wtf/HashMap.h" |
12 #include "wtf/OwnPtr.h" | 12 #include "wtf/OwnPtr.h" |
13 #include "wtf/RefPtr.h" | 13 #include "wtf/RefPtr.h" |
14 | 14 |
15 namespace blink { | 15 namespace blink { |
16 | 16 |
17 class Document; | 17 class Document; |
18 | 18 |
19 class CORE_EXPORT NthIndexData final : public NoBaseWillBeGarbageCollected<NthIn
dexData> { | 19 class CORE_EXPORT NthIndexData final : public NoBaseWillBeGarbageCollected<NthIn
dexData> { |
| 20 WTF_MAKE_FAST_ALLOCATED_WILL_BE_REMOVED(NthIndexData); |
20 WTF_MAKE_NONCOPYABLE(NthIndexData); | 21 WTF_MAKE_NONCOPYABLE(NthIndexData); |
21 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NthIndexData); | 22 DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NthIndexData); |
22 public: | 23 public: |
23 NthIndexData() { } | 24 NthIndexData() { } |
24 | 25 |
25 unsigned nthIndex(Element&); | 26 unsigned nthIndex(Element&); |
26 unsigned nthIndexOfType(Element&, const QualifiedName&); | 27 unsigned nthIndexOfType(Element&, const QualifiedName&); |
27 unsigned nthLastIndex(Element&); | 28 unsigned nthLastIndex(Element&); |
28 unsigned nthLastIndexOfType(Element&, const QualifiedName&); | 29 unsigned nthLastIndexOfType(Element&, const QualifiedName&); |
29 | 30 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 OwnPtrWillBeMember<ParentMapForType> m_parentMapForType; | 83 OwnPtrWillBeMember<ParentMapForType> m_parentMapForType; |
83 | 84 |
84 #if ENABLE(ASSERT) | 85 #if ENABLE(ASSERT) |
85 uint64_t m_domTreeVersion; | 86 uint64_t m_domTreeVersion; |
86 #endif | 87 #endif |
87 }; | 88 }; |
88 | 89 |
89 } // namespace blink | 90 } // namespace blink |
90 | 91 |
91 #endif // NthIndexCache_h | 92 #endif // NthIndexCache_h |
OLD | NEW |