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

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

Issue 2292843002: Remove WTFLogAlways() usages from core/{dom,editing}/. (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 37e5d7aa98bf10b0099512da4b69acfc9b754e9e..852c7aee652b1d9f92af7e7b6884f14994bc7489 100644
--- a/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
+++ b/third_party/WebKit/Source/core/editing/VisibleSelection.cpp
@@ -806,14 +806,12 @@ void VisibleSelectionTemplate<Strategy>::debugPosition(const char* message) cons
template <typename Strategy>
void VisibleSelectionTemplate<Strategy>::showTreeForThis() const
{
- if (start().anchorNode()) {
- // 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);
- end().showAnchorTypeAndOffset();
- }
+ if (!start().anchorNode())
+ return;
+ LOG(INFO) << "\n"
+ << start().anchorNode()->toMarkedTreeString(start().anchorNode(), "S", end().anchorNode(), "E").utf8().data()
+ << "start: " << start().toAnchorTypeAndOffsetString().utf8().data() << "\n"
+ << "end: " << end().toAnchorTypeAndOffsetString().utf8().data();
}
#endif
« no previous file with comments | « third_party/WebKit/Source/core/editing/Position.cpp ('k') | third_party/WebKit/Source/core/html/parser/HTMLElementStack.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698