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

Unified Diff: Source/platform/heap/Handle.h

Issue 858663002: Fix template angle bracket syntax in platform (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase Created 5 years, 11 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/platform/graphics/paint/DisplayItemList.h ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Handle.h
diff --git a/Source/platform/heap/Handle.h b/Source/platform/heap/Handle.h
index 339d4f3a75831107d1add441d63e5c39f8418675..8141692fb7cd075199d847d2480c3d03d3476bfd 100644
--- a/Source/platform/heap/Handle.h
+++ b/Source/platform/heap/Handle.h
@@ -301,7 +301,7 @@ class CrossThreadPersistent;
// We have to construct and destruct Persistent with default RootsAccessor in
// the same thread.
template<typename T, typename RootsAccessor /* = ThreadLocalPersistents<ThreadingTrait<T>::Affinity > */ >
-class Persistent : public PersistentBase<RootsAccessor, Persistent<T, RootsAccessor> > {
+class Persistent : public PersistentBase<RootsAccessor, Persistent<T, RootsAccessor>> {
public:
Persistent() : m_raw(nullptr) { }
@@ -440,7 +440,7 @@ public:
template<typename Collection, ThreadAffinity Affinity = AnyThread>
class PersistentHeapCollectionBase
: public Collection
- , public PersistentBase<ThreadLocalPersistents<Affinity>, PersistentHeapCollectionBase<Collection, Affinity> > {
+ , public PersistentBase<ThreadLocalPersistents<Affinity>, PersistentHeapCollectionBase<Collection, Affinity>> {
// We overload the various new and delete operators with using the WTF DefaultAllocator to ensure persistent
// heap collections are always allocated off-heap. This allows persistent collections to be used in
// DEFINE_STATIC_LOCAL et. al.
@@ -465,50 +465,50 @@ template<
typename MappedArg,
typename HashArg = typename DefaultHash<KeyArg>::Hash,
typename KeyTraitsArg = HashTraits<KeyArg>,
- typename MappedTraitsArg = HashTraits<MappedArg> >
-class PersistentHeapHashMap : public PersistentHeapCollectionBase<HeapHashMap<KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg> > { };
+ typename MappedTraitsArg = HashTraits<MappedArg>>
+class PersistentHeapHashMap : public PersistentHeapCollectionBase<HeapHashMap<KeyArg, MappedArg, HashArg, KeyTraitsArg, MappedTraitsArg>> { };
template<
typename ValueArg,
typename HashArg = typename DefaultHash<ValueArg>::Hash,
- typename TraitsArg = HashTraits<ValueArg> >
-class PersistentHeapHashSet : public PersistentHeapCollectionBase<HeapHashSet<ValueArg, HashArg, TraitsArg> > { };
+ typename TraitsArg = HashTraits<ValueArg>>
+class PersistentHeapHashSet : public PersistentHeapCollectionBase<HeapHashSet<ValueArg, HashArg, TraitsArg>> { };
template<
typename ValueArg,
typename HashArg = typename DefaultHash<ValueArg>::Hash,
- typename TraitsArg = HashTraits<ValueArg> >
-class PersistentHeapLinkedHashSet : public PersistentHeapCollectionBase<HeapLinkedHashSet<ValueArg, HashArg, TraitsArg> > { };
+ typename TraitsArg = HashTraits<ValueArg>>
+class PersistentHeapLinkedHashSet : public PersistentHeapCollectionBase<HeapLinkedHashSet<ValueArg, HashArg, TraitsArg>> { };
template<
typename ValueArg,
size_t inlineCapacity = 0,
typename HashArg = typename DefaultHash<ValueArg>::Hash>
-class PersistentHeapListHashSet : public PersistentHeapCollectionBase<HeapListHashSet<ValueArg, inlineCapacity, HashArg> > { };
+class PersistentHeapListHashSet : public PersistentHeapCollectionBase<HeapListHashSet<ValueArg, inlineCapacity, HashArg>> { };
template<typename T, typename U, typename V>
-class PersistentHeapHashCountedSet : public PersistentHeapCollectionBase<HeapHashCountedSet<T, U, V> > { };
+class PersistentHeapHashCountedSet : public PersistentHeapCollectionBase<HeapHashCountedSet<T, U, V>> { };
template<typename T, size_t inlineCapacity = 0>
-class PersistentHeapVector : public PersistentHeapCollectionBase<HeapVector<T, inlineCapacity> > {
+class PersistentHeapVector : public PersistentHeapCollectionBase<HeapVector<T, inlineCapacity>> {
public:
PersistentHeapVector() { }
template<size_t otherCapacity>
PersistentHeapVector(const HeapVector<T, otherCapacity>& other)
- : PersistentHeapCollectionBase<HeapVector<T, inlineCapacity> >(other)
+ : PersistentHeapCollectionBase<HeapVector<T, inlineCapacity>>(other)
{
}
};
template<typename T, size_t inlineCapacity = 0>
-class PersistentHeapDeque : public PersistentHeapCollectionBase<HeapDeque<T, inlineCapacity> > {
+class PersistentHeapDeque : public PersistentHeapCollectionBase<HeapDeque<T, inlineCapacity>> {
public:
PersistentHeapDeque() { }
template<size_t otherCapacity>
PersistentHeapDeque(const HeapDeque<T, otherCapacity>& other)
- : PersistentHeapCollectionBase<HeapDeque<T, inlineCapacity> >(other)
+ : PersistentHeapCollectionBase<HeapDeque<T, inlineCapacity>>(other)
{
}
};
@@ -651,7 +651,7 @@ struct TraceIfNeeded : public TraceIfEnabled<T, WTF::NeedsTracing<T>::value || b
// collected. If you have a collection that contain weakness it does not remove
// entries from the collection that contain nulled weak members.
template<typename T, typename U>
-class TraceTrait<std::pair<T, U> > {
+class TraceTrait<std::pair<T, U>> {
public:
static const bool firstNeedsTracing = WTF::NeedsTracing<T>::value || WTF::IsWeak<T>::value;
static const bool secondNeedsTracing = WTF::NeedsTracing<U>::value || WTF::IsWeak<U>::value;
@@ -938,25 +938,25 @@ public:
};
template<typename T, typename U, typename V, typename W, typename X>
-class TraceEagerlyTrait<HeapHashMap<T, U, V, W, X> > {
+class TraceEagerlyTrait<HeapHashMap<T, U, V, W, X>> {
public:
static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value || TraceEagerlyTrait<U>::value;
};
template<typename T, typename U, typename V>
-class TraceEagerlyTrait<HeapHashSet<T, U, V> > {
+class TraceEagerlyTrait<HeapHashSet<T, U, V>> {
public:
static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, typename U, typename V>
-class TraceEagerlyTrait<HeapLinkedHashSet<T, U, V> > {
+class TraceEagerlyTrait<HeapLinkedHashSet<T, U, V>> {
public:
static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
template<typename T, size_t inlineCapacity, typename U>
-class TraceEagerlyTrait<HeapListHashSet<T, inlineCapacity, U> > {
+class TraceEagerlyTrait<HeapListHashSet<T, inlineCapacity, U>> {
public:
static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
@@ -968,7 +968,7 @@ public:
};
template<typename T, size_t inlineCapacity>
-class TraceEagerlyTrait<HeapVector<T, inlineCapacity> > {
+class TraceEagerlyTrait<HeapVector<T, inlineCapacity>> {
public:
static const bool value = MARKER_EAGER_TRACING || TraceEagerlyTrait<T>::value;
};
« no previous file with comments | « Source/platform/graphics/paint/DisplayItemList.h ('k') | Source/platform/heap/Heap.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698