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

Unified Diff: third_party/WebKit/Source/core/dom/NthIndexCache.h

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/dom/NthIndexCache.h
diff --git a/third_party/WebKit/Source/core/dom/NthIndexCache.h b/third_party/WebKit/Source/core/dom/NthIndexCache.h
index 5ae0d46e250292a01a19105de6b57fcef06870ee..e0dc45ee6a01f92b458c76729f0510ccedf1c558 100644
--- a/third_party/WebKit/Source/core/dom/NthIndexCache.h
+++ b/third_party/WebKit/Source/core/dom/NthIndexCache.h
@@ -16,10 +16,8 @@ namespace blink {
class Document;
-class CORE_EXPORT NthIndexData final : public NoBaseWillBeGarbageCollected<NthIndexData> {
- USING_FAST_MALLOC_WILL_BE_REMOVED(NthIndexData);
+class CORE_EXPORT NthIndexData final : public GarbageCollected<NthIndexData> {
WTF_MAKE_NONCOPYABLE(NthIndexData);
- DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(NthIndexData);
public:
NthIndexData(ContainerNode&);
NthIndexData(ContainerNode&, const QualifiedName& type);
@@ -30,7 +28,7 @@ public:
unsigned nthLastOfTypeIndex(Element&) const;
private:
- WillBeHeapHashMap<RawPtrWillBeMember<Element>, unsigned> m_elementIndexMap;
+ HeapHashMap<Member<Element>, unsigned> m_elementIndexMap;
unsigned m_count = 0;
DECLARE_TRACE();
@@ -49,18 +47,18 @@ public:
static unsigned nthLastOfTypeIndex(Element&);
private:
- using IndexByType = WillBeHeapHashMap<String, OwnPtrWillBeMember<NthIndexData>>;
- using ParentMap = WillBeHeapHashMap<RefPtrWillBeMember<Node>, OwnPtrWillBeMember<NthIndexData>>;
- using ParentMapForType = WillBeHeapHashMap<RefPtrWillBeMember<Node>, OwnPtrWillBeMember<IndexByType>>;
+ using IndexByType = HeapHashMap<String, Member<NthIndexData>>;
+ using ParentMap = HeapHashMap<Member<Node>, Member<NthIndexData>>;
+ using ParentMapForType = HeapHashMap<Member<Node>, Member<IndexByType>>;
void cacheNthIndexDataForParent(Element&);
void cacheNthOfTypeIndexDataForParent(Element&);
IndexByType& ensureTypeIndexMap(ContainerNode&);
NthIndexData* nthTypeIndexDataForParent(Element&) const;
- RawPtrWillBeMember<Document> m_document;
- OwnPtrWillBeMember<ParentMap> m_parentMap;
- OwnPtrWillBeMember<ParentMapForType> m_parentMapForType;
+ Member<Document> m_document;
+ Member<ParentMap> m_parentMap;
+ Member<ParentMapForType> m_parentMapForType;
#if ENABLE(ASSERT)
uint64_t m_domTreeVersion;
« no previous file with comments | « third_party/WebKit/Source/core/dom/NodeWithIndex.h ('k') | third_party/WebKit/Source/core/dom/NthIndexCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698