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

Unified Diff: Source/wtf/RefVector.h

Issue 291863003: Replace CursorList with RefVector<CursorData>. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 7 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 | « Source/core/rendering/style/StyleRareInheritedData.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/wtf/RefVector.h
diff --git a/Source/wtf/RefVector.h b/Source/wtf/RefVector.h
index 1ba8c996e47373bca570bcf2afac02e8cde4ec5c..5117ce9cdb9a8d2875f4bf911defb2b92766f12d 100644
--- a/Source/wtf/RefVector.h
+++ b/Source/wtf/RefVector.h
@@ -19,6 +19,8 @@ public:
const T& operator[](size_t i) const { return m_vector[i]; }
T& operator[](size_t i) { return m_vector[i]; }
+ const T& at(size_t i) const { return m_vector.at(i); }
+ T& at(size_t i) { return m_vector.at(i); }
bool operator==(const RefVector& o) const { return m_vector == o.m_vector; }
bool operator!=(const RefVector& o) const { return m_vector != o.m_vector; }
« no previous file with comments | « Source/core/rendering/style/StyleRareInheritedData.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698