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

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

Issue 2293703002: Refactor Node::showTree*() functions. (Closed)
Patch Set: Created 4 years, 4 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/VisibleSelection.cpp
diff --git a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
index 49d1ab9561cc982d109b78a7d46d3bfa2ce91437..37e5d7aa98bf10b0099512da4b69acfc9b754e9e 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -807,7 +807,8 @@ template <typename Strategy>
void VisibleSelectionTemplate<Strategy>::showTreeForThis() const
{
if (start().anchorNode()) {
- start().anchorNode()->showTreeAndMark(start().anchorNode(), "S", end().anchorNode(), "E");
+ // TODO(tkent): Replace WTFLogAlways with something else.
+ WTFLogAlways("%s", start().anchorNode()->toMarkedTreeString(start().anchorNode(), "S", end().anchorNode(), "E").utf8().data());
fputs("start: ", stderr);
start().showAnchorTypeAndOffset();
fputs("end: ", stderr);
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.cpp ('k') | third_party/WebKit/Source/core/layout/LayoutObject.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698