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

Unified Diff: Source/platform/graphics/ContentLayerDelegate.cpp

Issue 1157653005: Move use of DisplayItemList's vector behind an explicit DisplayItems interface. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: DisplayItems must be noncopyable (Windows build fix) Created 5 years, 6 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: Source/platform/graphics/ContentLayerDelegate.cpp
diff --git a/Source/platform/graphics/ContentLayerDelegate.cpp b/Source/platform/graphics/ContentLayerDelegate.cpp
index 98b397caf1655e5341d3785beb963aa88cc251c4..d817f1fcc0709207a2f379dfdccbc64f5ad13ccc 100644
--- a/Source/platform/graphics/ContentLayerDelegate.cpp
+++ b/Source/platform/graphics/ContentLayerDelegate.cpp
@@ -90,11 +90,7 @@ void ContentLayerDelegate::paintContents(
m_painter->paint(context, clip);
- displayItemList->commitNewDisplayItems();
-
- const DisplayItems& paintList = displayItemList->displayItems();
- for (DisplayItems::const_iterator it = paintList.begin(); it != paintList.end(); ++it)
- (*it)->appendToWebDisplayItemList(webDisplayItemList);
+ displayItemList->commitNewDisplayItemsAndAppendToWebDisplayItemList(webDisplayItemList);
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698