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

Unified Diff: Source/core/dom/ElementDataCache.h

Issue 273843003: [Oilpan]: Make StylePropertySet fully garbage collected. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 7 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: Source/core/dom/ElementDataCache.h
diff --git a/Source/core/dom/ElementDataCache.h b/Source/core/dom/ElementDataCache.h
index d275f1edd37122bcfc754d0880578725a0821d9d..866beafae11834514418b2cf4c2ed2db3fe53954 100644
--- a/Source/core/dom/ElementDataCache.h
+++ b/Source/core/dom/ElementDataCache.h
@@ -27,6 +27,7 @@
#ifndef ElementDataCache_h
#define ElementDataCache_h
+#include "platform/heap/Handle.h"
#include "wtf/HashMap.h"
#include "wtf/PassOwnPtr.h"
#include "wtf/PassRefPtr.h"
@@ -45,12 +46,12 @@ public:
static PassOwnPtr<ElementDataCache> create() { return adoptPtr(new ElementDataCache); }
~ElementDataCache();
- PassRefPtr<ShareableElementData> cachedShareableElementDataWithAttributes(const Vector<Attribute>&);
+ PassRefPtrWillBeRawPtr<ShareableElementData> cachedShareableElementDataWithAttributes(const Vector<Attribute>&);
private:
ElementDataCache();
- typedef HashMap<unsigned, RefPtr<ShareableElementData>, AlreadyHashed> ShareableElementDataCache;
+ typedef WillBePersistentHeapHashMap<unsigned, RefPtrWillBeMember<ShareableElementData>, AlreadyHashed> ShareableElementDataCache;
ShareableElementDataCache m_shareableElementDataCache;
};

Powered by Google App Engine
This is Rietveld 408576698