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

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

Issue 1394313002: Make DisplayItem::replay const. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
index b4b9c844619fa3f0c551bddae35ca88d4d9d3c2c..e58e701589ad321cc222b2a8e7926f7f1e8e759d 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DisplayItemList.cpp
@@ -577,11 +577,11 @@ void DisplayItemList::showDebugData() const
#endif // ifndef NDEBUG
-void DisplayItemList::replay(GraphicsContext& context)
+void DisplayItemList::replay(GraphicsContext& context) const
{
TRACE_EVENT0("blink,benchmark", "DisplayItemList::replay");
ASSERT(m_newDisplayItems.isEmpty());
- for (DisplayItem& displayItem : m_currentDisplayItems)
+ for (const DisplayItem& displayItem : m_currentDisplayItems)
displayItem.replay(context);
}

Powered by Google App Engine
This is Rietveld 408576698