Small improvements to the node-display debugging helpers.
* khtml/xml/dom_nodeimpl.cpp:
(NodeImpl::displayTree): Make the rootNode be this if there is no rootEditableElement.
* khtml/xml/dom_nodeimpl.h: Make displayNode take a default argument of "" for its string.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8082
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2004-11-29 Ken Kocienda <kocienda@apple.com>
+
+ Reviewed by Harrison
+
+ Small improvements to the node-display debugging helpers.
+
+ * khtml/xml/dom_nodeimpl.cpp:
+ (NodeImpl::displayTree): Make the rootNode be this if there is no rootEditableElement.
+ * khtml/xml/dom_nodeimpl.h: Make displayNode take a default argument of "" for its string.
+
2004-11-29 Ken Kocienda <kocienda@apple.com>
Reviewed by Harrison
void NodeImpl::displayTree()
{
- NodeImpl *rootNode = rootEditableElement();
+ NodeImpl *rootNode = rootEditableElement() ? : this;
NodeImpl *node;
for (node = rootNode; node; node = node->traverseNextNode()) {
#ifndef NDEBUG
virtual void formatForDebugger(char *buffer, unsigned length) const;
- void displayNode(const char *prefix);
+ void displayNode(const char *prefix="");
void displayTree();
#endif