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

Unified Diff: Source/heap/Visitor.h

Issue 18375005: [oilpan] Move CSSFontFace and CSSSegmentedFontFace to the managed heap (Closed) Base URL: svn://svn.chromium.org/blink/branches/oilpan
Patch Set: Created 7 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/heap/Visitor.h
diff --git a/Source/heap/Visitor.h b/Source/heap/Visitor.h
index 0bbad103de055e9d05846b8e632373c3ed7a6735..44d5c6c48b45c10bc69a2dd4ca5b768ff3a6d65f 100644
--- a/Source/heap/Visitor.h
+++ b/Source/heap/Visitor.h
@@ -118,6 +118,13 @@ 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);
+ }
+
// 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/CSSSegmentedFontFace.cpp ('K') | « Source/core/css/StyleResolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698