| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) | 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) | 3 * (C) 1999 Antti Koivisto (koivisto@kde.org) |
| 4 * (C) 2001 Dirk Mueller (mueller@kde.org) | 4 * (C) 2001 Dirk Mueller (mueller@kde.org) |
| 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. | 5 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 Apple Inc. All r
ights reserved. |
| 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) | 6 * Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
| 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) | 7 * Copyright (C) 2009 Torch Mobile Inc. All rights reserved. (http://www.torchmo
bile.com/) |
| 8 * | 8 * |
| 9 * This library is free software; you can redistribute it and/or | 9 * This library is free software; you can redistribute it and/or |
| 10 * modify it under the terms of the GNU Library General Public | 10 * modify it under the terms of the GNU Library General Public |
| (...skipping 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1522 | 1522 |
| 1523 void Node::showNode(const char* prefix) const | 1523 void Node::showNode(const char* prefix) const |
| 1524 { | 1524 { |
| 1525 if (!prefix) | 1525 if (!prefix) |
| 1526 prefix = ""; | 1526 prefix = ""; |
| 1527 if (isTextNode()) { | 1527 if (isTextNode()) { |
| 1528 String value = nodeValue(); | 1528 String value = nodeValue(); |
| 1529 value.replaceWithLiteral('\\', "\\\\"); | 1529 value.replaceWithLiteral('\\', "\\\\"); |
| 1530 value.replaceWithLiteral('\n', "\\n"); | 1530 value.replaceWithLiteral('\n', "\\n"); |
| 1531 WTFLogAlways("%s%s\t%p \"%s\"\n", prefix, nodeName().utf8().data(), this
, value.utf8().data()); | 1531 WTFLogAlways("%s%s\t%p \"%s\"\n", prefix, nodeName().utf8().data(), this
, value.utf8().data()); |
| 1532 } else if (isDocumentTypeNode()) { |
| 1533 WTFLogAlways("%sDOCTYPE %s\t%p\n", prefix, nodeName().utf8().data(), thi
s); |
| 1534 } else if (nodeType() == PROCESSING_INSTRUCTION_NODE) { |
| 1535 WTFLogAlways("%s?%s\t%p\n", prefix, nodeName().utf8().data(), this); |
| 1532 } else { | 1536 } else { |
| 1533 StringBuilder attrs; | 1537 StringBuilder attrs; |
| 1534 appendAttributeDesc(this, attrs, idAttr, " ID"); | 1538 appendAttributeDesc(this, attrs, idAttr, " ID"); |
| 1535 appendAttributeDesc(this, attrs, classAttr, " CLASS"); | 1539 appendAttributeDesc(this, attrs, classAttr, " CLASS"); |
| 1536 appendAttributeDesc(this, attrs, styleAttr, " STYLE"); | 1540 appendAttributeDesc(this, attrs, styleAttr, " STYLE"); |
| 1541 if (hasEditableStyle()) |
| 1542 attrs.appendLiteral(" (editable)"); |
| 1537 WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, att
rs.toString().utf8().data()); | 1543 WTFLogAlways("%s%s\t%p%s\n", prefix, nodeName().utf8().data(), this, att
rs.toString().utf8().data()); |
| 1538 } | 1544 } |
| 1539 } | 1545 } |
| 1540 | 1546 |
| 1541 void Node::showTreeForThis() const | 1547 void Node::showTreeForThis() const |
| 1542 { | 1548 { |
| 1543 showTreeAndMark(this, "*"); | 1549 showTreeAndMark(this, "*"); |
| 1544 } | 1550 } |
| 1545 | 1551 |
| 1546 void Node::showTreeForThisInComposedTree() const | 1552 void Node::showTreeForThisInComposedTree() const |
| (...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2403 | 2409 |
| 2404 void showNodePath(const blink::Node* node) | 2410 void showNodePath(const blink::Node* node) |
| 2405 { | 2411 { |
| 2406 if (node) | 2412 if (node) |
| 2407 node->showNodePathForThis(); | 2413 node->showNodePathForThis(); |
| 2408 else | 2414 else |
| 2409 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2415 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
| 2410 } | 2416 } |
| 2411 | 2417 |
| 2412 #endif | 2418 #endif |
| OLD | NEW |