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

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

Issue 2533693002: [Editing] Add SelectionTemplate::showTreeForThis() (Closed)
Patch Set: Created 4 years, 1 month 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 c901ce77248dea86d74f08c3ab6b270f089a9d89..835ab7913246da560978701223e09123937e5c11 100644
--- a/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
+++ b/third_party/WebKit/Source/core/editing/SelectionTemplate.cpp
@@ -4,6 +4,7 @@
#include "core/editing/SelectionTemplate.h"
+#include "core/editing/VisibleSelection.h"
#include "wtf/Assertions.h"
#include <ostream> // NOLINT
@@ -103,6 +104,13 @@ bool SelectionTemplate<Strategy>::assertValid() const {
}
#endif
+#ifndef NDEBUG
+template <typename Strategy>
+void SelectionTemplate<Strategy>::showTreeForThis() const {
+ VisibleSelectionTemplate<Strategy>::showTreeForStartAndEnd(m_base, m_extent);
yosin_UTC9 2016/11/28 07:56:27 We don't want to make |SelectionTemplate| to depen
+}
+#endif
+
template <typename Strategy>
void SelectionTemplate<Strategy>::printTo(std::ostream* ostream,
const char* type) const {
« no previous file with comments | « third_party/WebKit/Source/core/editing/SelectionTemplate.h ('k') | third_party/WebKit/Source/core/editing/VisibleSelection.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698