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

Unified Diff: Source/heap/Visitor.h

Issue 18856015: [oilpan] Move CSSFontFace to the managed heap (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 years, 5 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
« Source/core/css/CSSFontFaceSource.h ('K') | « Source/core/css/StyleResolver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/heap/Visitor.h
diff --git a/Source/heap/Visitor.h b/Source/heap/Visitor.h
index 5dfaf655dc7882c3da6834993ff430e47e2e8cbe..dad9770ddf183325377bc4b791e56696b0d1158c 100644
--- a/Source/heap/Visitor.h
+++ b/Source/heap/Visitor.h
@@ -32,6 +32,7 @@
#define Visitor_h
#include <wtf/Forward.h>
+#include <wtf/HashSet.h>
namespace WebCore {
@@ -120,6 +121,20 @@ public:
visit(*it);
}
+ template<typename T, size_t N>
+ void visit(const Vector<Member<T>, N>& vector)
+ {
+ for (typename Vector<Member<T> >::const_iterator it = vector.begin(); it != vector.end(); ++it)
+ visit(*it);
+ }
+
+ template<typename T>
+ void visit(const HashSet<Member<T> >& vector)
+ {
+ for (typename HashSet<Member<T> >::const_iterator it = vector.begin(); it != vector.end(); ++it)
+ visit(*it);
+ }
+
// This method adds the object to the set of objects that should have their
// accept method called. Since not all objects have vtables we have to have
// the callback as an explicit argument, but we can use the templated
« Source/core/css/CSSFontFaceSource.h ('K') | « Source/core/css/StyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698