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

Unified Diff: third_party/WebKit/Source/core/editing/Position.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/Position.cpp
diff --git a/third_party/WebKit/Source/core/editing/Position.cpp b/third_party/WebKit/Source/core/editing/Position.cpp
index 2830559043f6c6e957371ad27ea83287b35b84d3..3cb68f58e0dffeead510713b5ce7495aaaedd64f 100644
--- a/third_party/WebKit/Source/core/editing/Position.cpp
+++ b/third_party/WebKit/Source/core/editing/Position.cpp
@@ -630,7 +630,8 @@ void PositionTemplate<Strategy>::showTreeForThis() const
{
if (!anchorNode())
return;
- anchorNode()->showTreeForThis();
+ // TODO(tkent): Replace WTFLogAlways with something else.
+ WTFLogAlways("%s", anchorNode()->toTreeStringForThis().utf8().data());
showAnchorTypeAndOffset();
}
@@ -639,7 +640,8 @@ void PositionTemplate<Strategy>::showTreeForThisInFlatTree() const
{
if (!anchorNode())
return;
- anchorNode()->showTreeForThisInFlatTree();
+ // TODO(tkent): Replace WTFLogAlways with something else.
+ WTFLogAlways("%s", anchorNode()->toFlatTreeStringForThis().utf8().data());
showAnchorTypeAndOffset();
}
« no previous file with comments | « third_party/WebKit/Source/core/dom/Range.cpp ('k') | third_party/WebKit/Source/core/editing/VisibleSelection.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698