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

Unified Diff: third_party/WebKit/Source/platform/graphics/ContiguousContainer.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_base_of 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/graphics/ContiguousContainer.h
diff --git a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h
index ca6332983408aabaef98d37ef99f7ceb98eb9c32..27be9fb22d656594f627ea02533434ccd545802e 100644
--- a/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h
+++ b/third_party/WebKit/Source/platform/graphics/ContiguousContainer.h
@@ -146,7 +146,7 @@ public:
template <class DerivedElementType, typename... Args>
DerivedElementType& allocateAndConstruct(Args&&... args)
{
- static_assert(WTF::IsSubclass<DerivedElementType, BaseElementType>::value,
+ static_assert(std::is_base_of<BaseElementType, DerivedElementType>::value,
"Must use subclass of BaseElementType.");
static_assert(alignment % WTF_ALIGN_OF(DerivedElementType) == 0,
"Derived type requires stronger alignment.");

Powered by Google App Engine
This is Rietveld 408576698