Index: third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h |
diff --git a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h |
index 4c91d855edced2586450f617a6f0fba3bfc2c4be..a5b712143474bd1dcb1282a72aa7c05f00e67f5d 100644 |
--- a/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h |
+++ b/third_party/WebKit/Source/core/paint/PaintControllerPaintTest.h |
@@ -83,6 +83,15 @@ protected: |
commit(); |
} |
+ bool displayItemListContains(const DisplayItemList& displayItemList, DisplayItemClient& client, DisplayItem::Type type) |
+ { |
+ for (auto& item : displayItemList) { |
+ if (item.client() == client && item.type() == type) |
+ return true; |
+ } |
+ return false; |
+ } |
+ |
private: |
bool m_originalSlimmingPaintOffsetCachingEnabled; |
bool m_originalSlimmingPaintV2Enabled; |