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

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: Fix crash found by svg/custom/invisible-text-after-scrolling.xhtml 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
Index: Source/core/dom/ElementDataCache.h
diff --git a/Source/core/dom/ElementDataCache.h b/Source/core/dom/ElementDataCache.h
index f1ff1b93b3a3c73dae05c44470c3e0dbd20672f2..912279e77cc8c8b39a5e0dce96b6c1464fb49e8f 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"
@@ -44,12 +45,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