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

Unified Diff: Source/platform/graphics/ContiguousContainer.h

Issue 1287863003: Avoid re-iterate out-of-order display items (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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 | Source/platform/graphics/paint/DisplayItem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/graphics/ContiguousContainer.h
diff --git a/Source/platform/graphics/ContiguousContainer.h b/Source/platform/graphics/ContiguousContainer.h
index 62ff2d9dcf01214faf7661fc435ec8f9fcdd7795..bfea148e71b3ae6616d8fd4c9b1a6d374b7015b6 100644
--- a/Source/platform/graphics/ContiguousContainer.h
+++ b/Source/platform/graphics/ContiguousContainer.h
@@ -90,7 +90,7 @@ private:
ValueType& operator*() const { return *static_cast<ValueType*>(*m_it); }
ValueType* operator->() const { return &operator*(); }
IteratorWrapper operator+(std::ptrdiff_t n) const { return IteratorWrapper(m_it + n); }
- IteratorWrapper operator++(int) const { IteratorWrapper tmp = *this; operator++(); return tmp; }
+ IteratorWrapper operator++(int) { IteratorWrapper tmp = *this; ++m_it; return tmp; }
std::ptrdiff_t operator-(const IteratorWrapper& other) const { return m_it - other.m_it; }
IteratorWrapper& operator++() { ++m_it; return *this; }
private:
« no previous file with comments | « no previous file | Source/platform/graphics/paint/DisplayItem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698