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

Unified Diff: third_party/WebKit/Source/core/dom/StaticNodeList.h

Issue 2652923002: Devirtualize Visitor and remove inline visitor specialization. (Closed)
Patch Set: rebased Created 3 years, 11 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: third_party/WebKit/Source/core/dom/StaticNodeList.h
diff --git a/third_party/WebKit/Source/core/dom/StaticNodeList.h b/third_party/WebKit/Source/core/dom/StaticNodeList.h
index 9f6079e632cd90c266968cac117805735453c29a..7df982765c662717fc4e1da63e6242caeb531b59 100644
--- a/third_party/WebKit/Source/core/dom/StaticNodeList.h
+++ b/third_party/WebKit/Source/core/dom/StaticNodeList.h
@@ -81,17 +81,6 @@ NodeType* StaticNodeTypeList<NodeType>::item(unsigned index) const {
template <typename NodeType>
void StaticNodeTypeList<NodeType>::trace(Visitor* visitor) {
- traceImpl(visitor);
-}
-template <typename NodeType>
-void StaticNodeTypeList<NodeType>::trace(InlinedGlobalMarkingVisitor visitor) {
- traceImpl(visitor);
-}
-
-template <typename NodeType>
-template <typename VisitorDispatcher>
-ALWAYS_INLINE void StaticNodeTypeList<NodeType>::traceImpl(
- VisitorDispatcher visitor) {
visitor->trace(m_nodes);
NodeList::trace(visitor);
}

Powered by Google App Engine
This is Rietveld 408576698