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

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h

Issue 2162603002: Reland of New PaintController under-invalidation checking (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@CommitOnTheWay
Patch Set: TestExpectations Created 4 years, 5 months 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/DisplayItemList.h
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
index 166619c669315b7145f05ad31766fa0f06f5f049..cf3293139db04a44b966a3907dfcb88fb0b1ed0f 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.h
@@ -45,9 +45,10 @@ public:
DisplayItem& appendByMoving(DisplayItem&);
+ bool hasVisualRect(unsigned index) const { return index < m_visualRects.size(); }
IntRect visualRect(unsigned index) const
{
- ASSERT(index < m_visualRects.size());
+ DCHECK(hasVisualRect(index));
return m_visualRects[index];
}

Powered by Google App Engine
This is Rietveld 408576698