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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
101 #include "StyleResolver.h" | 101 #include "StyleResolver.h" |
102 #include "TagNodeList.h" | 102 #include "TagNodeList.h" |
103 #include "TemplateContentDocumentFragment.h" | 103 #include "TemplateContentDocumentFragment.h" |
104 #include "Text.h" | 104 #include "Text.h" |
105 #include "TextEvent.h" | 105 #include "TextEvent.h" |
106 #include "TouchEvent.h" | 106 #include "TouchEvent.h" |
107 #include "TreeScopeAdopter.h" | 107 #include "TreeScopeAdopter.h" |
108 #include "UIEvent.h" | 108 #include "UIEvent.h" |
109 #include "UIEventWithKeyState.h" | 109 #include "UIEventWithKeyState.h" |
110 #include "UserActionElementSet.h" | 110 #include "UserActionElementSet.h" |
111 #include "WebCoreMemoryInstrumentation.h" | |
112 #include "WheelEvent.h" | 111 #include "WheelEvent.h" |
113 #include "WindowEventContext.h" | 112 #include "WindowEventContext.h" |
114 #include "XMLNames.h" | 113 #include "XMLNames.h" |
115 #include "htmlediting.h" | 114 #include "htmlediting.h" |
116 #include <wtf/HashSet.h> | 115 #include <wtf/HashSet.h> |
117 #include <wtf/PassOwnPtr.h> | 116 #include <wtf/PassOwnPtr.h> |
118 #include <wtf/RefCountedLeakCounter.h> | 117 #include <wtf/RefCountedLeakCounter.h> |
119 #include <wtf/UnusedParam.h> | 118 #include <wtf/UnusedParam.h> |
120 #include <wtf/Vector.h> | 119 #include <wtf/Vector.h> |
121 #include <wtf/text/CString.h> | 120 #include <wtf/text/CString.h> |
(...skipping 2471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2593 treeScope()->removedLastRefToScope(); | 2592 treeScope()->removedLastRefToScope(); |
2594 return; | 2593 return; |
2595 } | 2594 } |
2596 | 2595 |
2597 #ifndef NDEBUG | 2596 #ifndef NDEBUG |
2598 m_deletionHasBegun = true; | 2597 m_deletionHasBegun = true; |
2599 #endif | 2598 #endif |
2600 delete this; | 2599 delete this; |
2601 } | 2600 } |
2602 | 2601 |
2603 void Node::reportMemoryUsage(MemoryObjectInfo* memoryObjectInfo) const | |
2604 { | |
2605 MemoryClassInfo info(memoryObjectInfo, this, WebCoreMemoryTypes::DOM); | |
2606 ScriptWrappable::reportMemoryUsage(memoryObjectInfo); | |
2607 info.addMember(m_parentOrShadowHostNode, "parentOrShadowHostNode"); | |
2608 info.addMember(m_treeScope, "treeScope"); | |
2609 info.ignoreMember(m_next); | |
2610 info.ignoreMember(m_previous); | |
2611 info.addMember(this->renderer(), "renderer"); | |
2612 if (hasRareData()) { | |
2613 if (isElementNode()) | |
2614 info.addMember(static_cast<ElementRareData*>(rareData()), "elementRa
reData"); | |
2615 else | |
2616 info.addMember(rareData(), "rareData"); | |
2617 } | |
2618 } | |
2619 | |
2620 void Node::textRects(Vector<IntRect>& rects) const | 2602 void Node::textRects(Vector<IntRect>& rects) const |
2621 { | 2603 { |
2622 RefPtr<Range> range = Range::create(document()); | 2604 RefPtr<Range> range = Range::create(document()); |
2623 range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION); | 2605 range->selectNodeContents(const_cast<Node*>(this), IGNORE_EXCEPTION); |
2624 range->textRects(rects); | 2606 range->textRects(rects); |
2625 } | 2607 } |
2626 | 2608 |
2627 unsigned Node::connectedSubframeCount() const | 2609 unsigned Node::connectedSubframeCount() const |
2628 { | 2610 { |
2629 return hasRareData() ? rareData()->connectedSubframeCount() : 0; | 2611 return hasRareData() ? rareData()->connectedSubframeCount() : 0; |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2736 node->showTreeForThis(); | 2718 node->showTreeForThis(); |
2737 } | 2719 } |
2738 | 2720 |
2739 void showNodePath(const WebCore::Node* node) | 2721 void showNodePath(const WebCore::Node* node) |
2740 { | 2722 { |
2741 if (node) | 2723 if (node) |
2742 node->showNodePathForThis(); | 2724 node->showNodePathForThis(); |
2743 } | 2725 } |
2744 | 2726 |
2745 #endif | 2727 #endif |
OLD | NEW |