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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadingTraits.h

Issue 1477213003: More switching to standard type traits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use std::is_convertible in threading traits Created 5 years 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: third_party/WebKit/Source/platform/heap/ThreadingTraits.h
diff --git a/third_party/WebKit/Source/platform/heap/ThreadingTraits.h b/third_party/WebKit/Source/platform/heap/ThreadingTraits.h
index fef13ef6931856b060354f4f61ca2515afcb6d23..2657fefed7eed980200b5321c9ea8dda44f92103 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadingTraits.h
+++ b/third_party/WebKit/Source/platform/heap/ThreadingTraits.h
@@ -35,8 +35,8 @@ class Node;
class NodeList;
template<typename T,
- bool mainThreadOnly = WTF::IsSubclass<typename std::remove_const<T>::type, Node>::value
- || WTF::IsSubclass<typename std::remove_const<T>::type, NodeList>::value> struct DefaultThreadingTrait;
+ bool mainThreadOnly = std::is_convertible<typename std::remove_const<T>::type*, Node*>::value
+ || std::is_convertible<typename std::remove_const<T>::type*, NodeList*>::value> struct DefaultThreadingTrait;
Nico 2015/12/18 14:14:14 Now that I think about it, this is a risky change,
template<typename T>
struct DefaultThreadingTrait<T, false> {
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapAllocator.h ('k') | third_party/WebKit/Source/platform/heap/TraceTraits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698