Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(181)

Side by Side Diff: Source/core/dom/NthIndexCache.h

Issue 1304043002: Make classes and structures in core/dom fast-allocated. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « Source/core/dom/NodeTraversal.h ('k') | Source/core/dom/QualifiedName.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/dom/NodeTraversal.h ('k') | Source/core/dom/QualifiedName.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698