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

Unified Diff: third_party/WebKit/Source/core/dom/Node.cpp

Issue 1639193002: Improve showTree() debug helper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/dom/Node.cpp
diff --git a/third_party/WebKit/Source/core/dom/Node.cpp b/third_party/WebKit/Source/core/dom/Node.cpp
index 405626d58eee2af4fcfb56cc1c1df90f662223e0..2fdef0d6f4c2df421c2d426cbdd4efe7ec8bfde2 100644
--- a/third_party/WebKit/Source/core/dom/Node.cpp
+++ b/third_party/WebKit/Source/core/dom/Node.cpp
@@ -1529,11 +1529,17 @@ void Node::showNode(const char* prefix) const
value.replaceWithLiteral('\\', "\\\\");
value.replaceWithLiteral('\n', "\\n");
WTFLogAlways("%s%s\t%p \"%s\"\n", prefix, nodeName().utf8().data(), this, value.utf8().data());
+ } else if (isDocumentTypeNode()) {
+ WTFLogAlways("%sDOCTYPE %s\t%p\n", prefix, nodeName().utf8().data(), this);
+ } else if (nodeType() == PROCESSING_INSTRUCTION_NODE) {
+ WTFLogAlways("%s?%s\t%p\n", prefix, nodeName().utf8().data(), this);
} else {
StringBuilder attrs;
appendAttributeDesc(this, attrs, idAttr, " ID");
appendAttributeDesc(this, attrs, classAttr, " CLASS");
appendAttributeDesc(this, attrs, styleAttr, " STYLE");
+ if (hasEditableStyle())
+ attrs.appendLiteral(" (editable)");
WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, attrs.toString().utf8().data());
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698