| 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-2011, 2014 Apple Inc. All rights reserved. | 5 * Copyright (C) 2004-2011, 2014 Apple Inc. All rights reserved. |
| 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. | 6 * Copyright (C) 2008, 2009 Torch Mobile Inc. All rights reserved. |
| 7 * (http://www.torchmobile.com/) | 7 * (http://www.torchmobile.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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 // Override operator new to allocate Node subtype objects onto | 163 // Override operator new to allocate Node subtype objects onto |
| 164 // a dedicated heap. | 164 // a dedicated heap. |
| 165 GC_PLUGIN_IGNORE("crbug.com/443854") | 165 GC_PLUGIN_IGNORE("crbug.com/443854") |
| 166 void* operator new(size_t size) { return allocateObject(size, false); } | 166 void* operator new(size_t size) { return allocateObject(size, false); } |
| 167 static void* allocateObject(size_t size, bool isEager) { | 167 static void* allocateObject(size_t size, bool isEager) { |
| 168 ThreadState* state = | 168 ThreadState* state = |
| 169 ThreadStateFor<ThreadingTrait<Node>::Affinity>::state(); | 169 ThreadStateFor<ThreadingTrait<Node>::Affinity>::state(); |
| 170 const char typeName[] = "blink::Node"; | 170 const char typeName[] = "blink::Node"; |
| 171 return ThreadHeap::allocateOnArenaIndex( | 171 return ThreadHeap::allocateOnArenaIndex( |
| 172 state, size, | 172 state, size, |
| 173 isEager ? BlinkGC::EagerSweepArenaIndex : BlinkGC::NodeArenaIndex, | 173 is_eager ? BlinkGC::kEagerSweepArenaIndex : BlinkGC::kNodeArenaIndex, |
| 174 GCInfoTrait<EventTarget>::index(), typeName); | 174 GCInfoTrait<EventTarget>::index(), kTypeName); |
| 175 } | 175 } |
| 176 | 176 |
| 177 static void dumpStatistics(); | 177 static void dumpStatistics(); |
| 178 | 178 |
| 179 ~Node() override; | 179 ~Node() override; |
| 180 | 180 |
| 181 // DOM methods & attributes for Node | 181 // DOM methods & attributes for Node |
| 182 | 182 |
| 183 bool hasTagName(const HTMLQualifiedName&) const; | 183 bool hasTagName(const HTMLQualifiedName&) const; |
| 184 bool hasTagName(const SVGQualifiedName&) const; | 184 bool hasTagName(const SVGQualifiedName&) const; |
| (...skipping 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1017 } // namespace blink | 1017 } // namespace blink |
| 1018 | 1018 |
| 1019 #ifndef NDEBUG | 1019 #ifndef NDEBUG |
| 1020 // Outside the WebCore namespace for ease of invocation from gdb. | 1020 // Outside the WebCore namespace for ease of invocation from gdb. |
| 1021 void showNode(const blink::Node*); | 1021 void showNode(const blink::Node*); |
| 1022 void showTree(const blink::Node*); | 1022 void showTree(const blink::Node*); |
| 1023 void showNodePath(const blink::Node*); | 1023 void showNodePath(const blink::Node*); |
| 1024 #endif | 1024 #endif |
| 1025 | 1025 |
| 1026 #endif // Node_h | 1026 #endif // Node_h |
| OLD | NEW |