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

Unified Diff: third_party/WebKit/Source/core/editing/SelectionTemplate.cpp

Issue 2672413003: Out-of-line trace() methods of editing template types. (Closed)
Patch Set: Created 3 years, 10 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/editing/SelectionTemplate.cpp
diff --git a/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp b/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
index 0b9056a272805b0650f15fbd1fa299e20658f00b..bef173de717231eeaf229a9f5a90d987bb468d95 100644
--- a/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
@@ -55,6 +55,12 @@ bool SelectionTemplate<Strategy>::operator!=(
}
template <typename Strategy>
+DEFINE_TRACE(SelectionTemplate<Strategy>) {
+ visitor->trace(m_base);
+ visitor->trace(m_extent);
+}
+
+template <typename Strategy>
const PositionTemplate<Strategy>& SelectionTemplate<Strategy>::base() const {
DCHECK(assertValid());
DCHECK(!m_base.isOrphan()) << m_base;

Powered by Google App Engine
This is Rietveld 408576698