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 ce39ebdb56b51d15ed71d209dd1a0ddc868d7710..cdcd29a18fd2a93796a45e8a3238721807ca2a61 100644 |
--- a/third_party/WebKit/Source/platform/graphics/paint/PaintController.h |
+++ b/third_party/WebKit/Source/platform/graphics/paint/PaintController.h |
@@ -44,6 +44,8 @@ public: |
~PaintController() |
{ |
+ // New display items should be committed before PaintController is destructed. |
+ DCHECK(m_newDisplayItemList.isEmpty()); |
#if CHECK_DISPLAY_ITEM_CLIENT_ALIVENESS |
DisplayItemClient::endShouldKeepAliveAllClients(this); |
#endif |