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

Unified Diff: third_party/WebKit/Source/core/dom/Range.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/editing/Position.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Range.cpp
diff --git a/third_party/WebKit/Source/core/dom/Range.cpp b/third_party/WebKit/Source/core/dom/Range.cpp
index 49e7a68ccdefce0512429443117b752478e0a553..e49ac61966b8b1cbaf67c0e9cfafd5a767499c5c 100644
--- a/third_party/WebKit/Source/core/dom/Range.cpp
+++ b/third_party/WebKit/Source/core/dom/Range.cpp
@@ -1568,7 +1568,8 @@ DEFINE_TRACE(Range)
void showTree(const blink::Range* range)
{
if (range && range->boundaryPointsValid()) {
- range->startContainer()->showTreeAndMark(range->startContainer(), "S", range->endContainer(), "E");
+ // TODO(tkent): Replace WTFLogAlways with something else.
+ WTFLogAlways("%s", range->startContainer()->toMarkedTreeString(range->startContainer(), "S", range->endContainer(), "E").utf8().data());
fprintf(stderr, "start offset: %d, end offset: %d\n", range->startOffset(), range->endOffset());
} else {
fprintf(stderr, "Cannot show tree if range is null, or if boundary points are invalid.\n");
« no previous file with comments | « third_party/WebKit/Source/core/dom/Node.cpp ('k') | third_party/WebKit/Source/core/editing/Position.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698