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, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. (http://www.t
orchmobile.com/) |
7 * | 7 * |
8 * This library is free software; you can redistribute it and/or | 8 * This library is free software; you can redistribute it and/or |
9 * modify it under the terms of the GNU Library General Public | 9 * modify it under the terms of the GNU Library General Public |
10 * License as published by the Free Software Foundation; either | 10 * License as published by the Free Software Foundation; either |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 | 156 |
157 // All Nodes are placed in their own heap partition for security. | 157 // All Nodes are placed in their own heap partition for security. |
158 // See http://crbug.com/246860 for detail. | 158 // See http://crbug.com/246860 for detail. |
159 void* operator new(size_t); | 159 void* operator new(size_t); |
160 void operator delete(void*); | 160 void operator delete(void*); |
161 | 161 |
162 static bool isSupported(const String& feature, const String& version); | 162 static bool isSupported(const String& feature, const String& version); |
163 static void dumpStatistics(); | 163 static void dumpStatistics(); |
164 | 164 |
165 virtual ~Node(); | 165 virtual ~Node(); |
166 void willBeDeletedFrom(Document*); | |
167 | 166 |
168 // DOM methods & attributes for Node | 167 // DOM methods & attributes for Node |
169 | 168 |
170 bool hasTagName(const QualifiedName&) const; | 169 bool hasTagName(const QualifiedName&) const; |
171 virtual String nodeName() const = 0; | 170 virtual String nodeName() const = 0; |
172 virtual String nodeValue() const; | 171 virtual String nodeValue() const; |
173 virtual void setNodeValue(const String&); | 172 virtual void setNodeValue(const String&); |
174 virtual NodeType nodeType() const = 0; | 173 virtual NodeType nodeType() const = 0; |
175 ContainerNode* parentNode() const; | 174 ContainerNode* parentNode() const; |
176 Element* parentElement() const; | 175 Element* parentElement() const; |
(...skipping 608 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
785 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) | 784 #if !defined(NDEBUG) || (defined(DUMP_NODE_STATISTICS) && DUMP_NODE_STATISTICS) |
786 trackForDebugging(); | 785 trackForDebugging(); |
787 #endif | 786 #endif |
788 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); | 787 InspectorCounters::incrementCounter(InspectorCounters::NodeCounter); |
789 } | 788 } |
790 | 789 |
791 virtual void didMoveToNewDocument(Document& oldDocument); | 790 virtual void didMoveToNewDocument(Document& oldDocument); |
792 | 791 |
793 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const { } | 792 virtual void addSubresourceAttributeURLs(ListHashSet<KURL>&) const { } |
794 | 793 |
| 794 void willBeDeletedFromDocument(); |
| 795 |
795 bool hasRareData() const { return getFlag(HasRareDataFlag); } | 796 bool hasRareData() const { return getFlag(HasRareDataFlag); } |
796 | 797 |
797 NodeRareData* rareData() const; | 798 NodeRareData* rareData() const; |
798 NodeRareData& ensureRareData(); | 799 NodeRareData& ensureRareData(); |
799 void clearRareData(); | 800 void clearRareData(); |
800 | 801 |
801 void clearEventTargetData(); | 802 void clearEventTargetData(); |
802 | 803 |
803 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla
g); } | 804 void setHasCustomStyleCallbacks() { setFlag(true, HasCustomStyleCallbacksFla
g); } |
804 | 805 |
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
942 | 943 |
943 } // namespace WebCore | 944 } // namespace WebCore |
944 | 945 |
945 #ifndef NDEBUG | 946 #ifndef NDEBUG |
946 // Outside the WebCore namespace for ease of invocation from gdb. | 947 // Outside the WebCore namespace for ease of invocation from gdb. |
947 void showTree(const WebCore::Node*); | 948 void showTree(const WebCore::Node*); |
948 void showNodePath(const WebCore::Node*); | 949 void showNodePath(const WebCore::Node*); |
949 #endif | 950 #endif |
950 | 951 |
951 #endif | 952 #endif |
OLD | NEW |