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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/PaintController.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/paint/PaintController.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
index b62d5391553bd8bbad4b835d8e28fe7bf7d89b18..80ca441f5b889c9a239dd222d6dc434842c6eda5 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -69,7 +69,7 @@ public:
template <typename DisplayItemClass, typename... Args>
void createAndAppend(Args&&... args)
{
- static_assert(WTF::IsSubclass<DisplayItemClass, DisplayItem>::value,
+ static_assert(std::is_base_of<DisplayItem, DisplayItemClass>::value,
"Can only createAndAppend subclasses of DisplayItem.");
static_assert(sizeof(DisplayItemClass) <= kMaximumDisplayItemSize,
"DisplayItem subclass is larger than kMaximumDisplayItemSize.");

Powered by Google App Engine
This is Rietveld 408576698