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

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

Issue 355133003: [oilpan]: Move ElementDataCache to the oilpan heap using transition types. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ElementDataCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/dom/ElementDataCache.h
diff --git a/Source/core/dom/ElementDataCache.h b/Source/core/dom/ElementDataCache.h
index 912279e77cc8c8b39a5e0dce96b6c1464fb49e8f..d57bb2e2c92937705f581b4729ad0ed3b39a99ad 100644
--- a/Source/core/dom/ElementDataCache.h
+++ b/Source/core/dom/ElementDataCache.h
@@ -40,17 +40,19 @@ namespace WebCore {
class Attribute;
class ShareableElementData;
-class ElementDataCache {
+class ElementDataCache FINAL : public NoBaseWillBeGarbageCollected<ElementDataCache> {
+ DECLARE_EMPTY_DESTRUCTOR_WILL_BE_REMOVED(ElementDataCache)
public:
- static PassOwnPtr<ElementDataCache> create() { return adoptPtr(new ElementDataCache); }
- ~ElementDataCache();
+ static PassOwnPtrWillBeRawPtr<ElementDataCache> create() { return adoptPtrWillBeNoop(new ElementDataCache); }
PassRefPtrWillBeRawPtr<ShareableElementData> cachedShareableElementDataWithAttributes(const Vector<Attribute>&);
+ void trace(Visitor*);
+
private:
ElementDataCache();
- typedef WillBePersistentHeapHashMap<unsigned, RefPtrWillBeMember<ShareableElementData>, AlreadyHashed> ShareableElementDataCache;
+ typedef WillBeHeapHashMap<unsigned, RefPtrWillBeMember<ShareableElementData>, AlreadyHashed> ShareableElementDataCache;
ShareableElementDataCache m_shareableElementDataCache;
};
« no previous file with comments | « Source/core/dom/Document.cpp ('k') | Source/core/dom/ElementDataCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698