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

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_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/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 ad3fb8d8822fc7a0607a972463e1ed18e0c14a64..5945de94ee928be1d653db9620bd4fa65d96e451 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h
@@ -70,7 +70,7 @@ public:
template <typename DisplayItemClass, typename... Args>
void createAndAppend(Args&&... args)
{
- static_assert(WTF::IsSubclass<DisplayItemClass, DisplayItem>::value,
+ static_assert(WTF::IsBaseOf<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