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 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
385 #endif | 385 #endif |
386 | 386 |
387 #if DUMP_NODE_STATISTICS | 387 #if DUMP_NODE_STATISTICS |
388 liveNodeSet.add(this); | 388 liveNodeSet.add(this); |
389 #endif | 389 #endif |
390 } | 390 } |
391 | 391 |
392 void Node::trace(Visitor* visitor) | 392 void Node::trace(Visitor* visitor) |
393 { | 393 { |
394 if (hasRareData()) | 394 if (hasRareData()) |
395 visitor->visit(rareData()); | 395 visitor->mark(rareData()); |
396 visitor->trace(m_parentOrShadowHostNode); | 396 visitor->trace(m_parentOrShadowHostNode); |
397 visitor->trace(m_treeScope); | 397 visitor->trace(m_treeScope); |
398 visitor->trace(m_previous); | 398 visitor->trace(m_previous); |
399 visitor->trace(m_next); | 399 visitor->trace(m_next); |
400 } | 400 } |
401 | 401 |
402 Node::~Node() | 402 Node::~Node() |
403 { | 403 { |
404 // It is no longer valid to access document() from node finalizers because | 404 // It is no longer valid to access document() from node finalizers because |
405 // treeScope() might die in the same GC cycle and may already be finalized, | 405 // treeScope() might die in the same GC cycle and may already be finalized, |
(...skipping 2327 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2733 node->showTreeForThis(); | 2733 node->showTreeForThis(); |
2734 } | 2734 } |
2735 | 2735 |
2736 void showNodePath(const WebCore::Node* node) | 2736 void showNodePath(const WebCore::Node* node) |
2737 { | 2737 { |
2738 if (node) | 2738 if (node) |
2739 node->showNodePathForThis(); | 2739 node->showNodePathForThis(); |
2740 } | 2740 } |
2741 | 2741 |
2742 #endif | 2742 #endif |
OLD | NEW |