| Index: Source/core/dom/Document.h
|
| diff --git a/Source/core/dom/Document.h b/Source/core/dom/Document.h
|
| index ce3b318d6c560de10df79caf26d868fb81575165..9b0023a1deefcecd93e08c4ae77a69b90c2ab28d 100644
|
| --- a/Source/core/dom/Document.h
|
| +++ b/Source/core/dom/Document.h
|
| @@ -1038,6 +1038,17 @@ public:
|
|
|
| CanvasFontCache* canvasFontCache();
|
|
|
| + void incrementNodeCount() { m_nodeCount++; }
|
| + void decrementNodeCount()
|
| + {
|
| + ASSERT(m_nodeCount > 0);
|
| + m_nodeCount--;
|
| + }
|
| + int nodeCount() const { return m_nodeCount; }
|
| +
|
| + using WeakDocumentSet = WillBeHeapHashSet<RawPtrWillBeWeakMember<Document>>;
|
| + static WeakDocumentSet& liveDocumentSet();
|
| +
|
| protected:
|
| Document(const DocumentInit&, DocumentClassFlags = DefaultDocumentClass);
|
|
|
| @@ -1384,6 +1395,8 @@ private:
|
| ClientHintsPreferences m_clientHintsPreferences;
|
|
|
| PersistentWillBeMember<CanvasFontCache> m_canvasFontCache;
|
| +
|
| + int m_nodeCount;
|
| };
|
|
|
| extern template class CORE_EXTERN_TEMPLATE_EXPORT WillBeHeapSupplement<Document>;
|
|
|