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

Unified Diff: Source/heap/Handle.h

Issue 216723002: Make sure all destructors are called in HeapHashMap and HeapHashSet (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: CR feedback Created 6 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
« no previous file with comments | « no previous file | Source/heap/Heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/Handle.h
diff --git a/Source/heap/Handle.h b/Source/heap/Handle.h
index 20c629c0c16beea7e2a0ed4c51547584b94d5615..76cda5e75fd506df2d91e9f6b6d8718d20911ed3 100644
--- a/Source/heap/Handle.h
+++ b/Source/heap/Handle.h
@@ -891,9 +891,9 @@ struct IsWeak<WebCore::WeakMember<T> > {
static const bool value = true;
};
-template<typename Key, typename Value, typename Extractor, typename Traits, typename KeyTraits>
-struct IsWeak<WebCore::HeapHashTableBacking<Key, Value, Extractor, Traits, KeyTraits> > {
- static const bool value = Traits::isWeak;
+template<typename Table>
+struct IsWeak<WebCore::HeapHashTableBacking<Table> > {
+ static const bool value = Table::ValueTraits::isWeak;
};
template<typename T> inline T* getPtr(const WebCore::Member<T>& p)
@@ -908,8 +908,8 @@ struct NeedsTracing<std::pair<T, U> > {
// We define specialization of the NeedsTracing trait for off heap collections
// since we don't support tracing them.
-template<typename T>
-struct NeedsTracing<Vector<T> > {
+template<typename T, size_t N>
+struct NeedsTracing<Vector<T, N> > {
static const bool value = false;
};
« no previous file with comments | « no previous file | Source/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698