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]; |
} |