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

Unified Diff: cc/CCDamageTracker.cpp

Issue 10914327: Make cc's use of WTF::HashMap robust to key/value change (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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
« no previous file with comments | « no previous file | cc/CCDirectRenderer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/CCDamageTracker.cpp
diff --git a/cc/CCDamageTracker.cpp b/cc/CCDamageTracker.cpp
index d2a94a848456fbfa4dcda00944f61f86516537a5..9d4b108ef7a6c6d199d545714b51cd2e0bed42e4 100644
--- a/cc/CCDamageTracker.cpp
+++ b/cc/CCDamageTracker.cpp
@@ -207,7 +207,11 @@ FloatRect CCDamageTracker::trackDamageFromLeftoverRects()
FloatRect damageRect = FloatRect();
for (RectMap::iterator it = m_currentRectHistory->begin(); it != m_currentRectHistory->end(); ++it)
+#if WTF_NEW_HASHMAP_ITERATORS_INTERFACE
+ damageRect.unite(it->value);
+#else
damageRect.unite(it->second);
+#endif
m_currentRectHistory->clear();
« no previous file with comments | « no previous file | cc/CCDirectRenderer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698