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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 #include "core/html/HTMLAnchorElement.h" | 82 #include "core/html/HTMLAnchorElement.h" |
83 #include "core/html/HTMLDialogElement.h" | 83 #include "core/html/HTMLDialogElement.h" |
84 #include "core/html/HTMLFrameOwnerElement.h" | 84 #include "core/html/HTMLFrameOwnerElement.h" |
85 #include "core/html/HTMLStyleElement.h" | 85 #include "core/html/HTMLStyleElement.h" |
86 #include "core/layout/LayoutBox.h" | 86 #include "core/layout/LayoutBox.h" |
87 #include "core/page/ContextMenuController.h" | 87 #include "core/page/ContextMenuController.h" |
88 #include "core/page/EventHandler.h" | 88 #include "core/page/EventHandler.h" |
89 #include "core/page/Page.h" | 89 #include "core/page/Page.h" |
90 #include "core/svg/graphics/SVGImage.h" | 90 #include "core/svg/graphics/SVGImage.h" |
91 #include "platform/EventDispatchForbiddenScope.h" | 91 #include "platform/EventDispatchForbiddenScope.h" |
92 #include "platform/Partitions.h" | |
93 #include "platform/TraceEvent.h" | 92 #include "platform/TraceEvent.h" |
94 #include "platform/TracedValue.h" | 93 #include "platform/TracedValue.h" |
95 #include "wtf/HashSet.h" | 94 #include "wtf/HashSet.h" |
| 95 #include "wtf/Partitions.h" |
96 #include "wtf/PassOwnPtr.h" | 96 #include "wtf/PassOwnPtr.h" |
97 #include "wtf/RefCountedLeakCounter.h" | 97 #include "wtf/RefCountedLeakCounter.h" |
98 #include "wtf/Vector.h" | 98 #include "wtf/Vector.h" |
99 #include "wtf/text/CString.h" | 99 #include "wtf/text/CString.h" |
100 #include "wtf/text/StringBuilder.h" | 100 #include "wtf/text/StringBuilder.h" |
101 | 101 |
102 namespace blink { | 102 namespace blink { |
103 | 103 |
104 using namespace HTMLNames; | 104 using namespace HTMLNames; |
105 | 105 |
106 struct SameSizeAsNode : NODE_BASE_CLASSES { | 106 struct SameSizeAsNode : NODE_BASE_CLASSES { |
107 uint32_t m_nodeFlags; | 107 uint32_t m_nodeFlags; |
108 void* m_pointer[5]; | 108 void* m_pointer[5]; |
109 }; | 109 }; |
110 | 110 |
111 static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small"); | 111 static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small"); |
112 | 112 |
113 #if !ENABLE(OILPAN) | 113 #if !ENABLE(OILPAN) |
114 void* Node::operator new(size_t size) | 114 void* Node::operator new(size_t size) |
115 { | 115 { |
116 ASSERT(isMainThread()); | 116 ASSERT(isMainThread()); |
117 return partitionAlloc(Partitions::getObjectModelPartition(), size); | 117 return partitionAlloc(WTF::Partitions::getObjectModelPartition(), size); |
118 } | 118 } |
119 | 119 |
120 void Node::operator delete(void* ptr) | 120 void Node::operator delete(void* ptr) |
121 { | 121 { |
122 ASSERT(isMainThread()); | 122 ASSERT(isMainThread()); |
123 partitionFree(ptr); | 123 partitionFree(ptr); |
124 } | 124 } |
125 #endif | 125 #endif |
126 | 126 |
127 #if DUMP_NODE_STATISTICS | 127 #if DUMP_NODE_STATISTICS |
(...skipping 2365 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2493 node->showTreeForThis(); | 2493 node->showTreeForThis(); |
2494 } | 2494 } |
2495 | 2495 |
2496 void showNodePath(const blink::Node* node) | 2496 void showNodePath(const blink::Node* node) |
2497 { | 2497 { |
2498 if (node) | 2498 if (node) |
2499 node->showNodePathForThis(); | 2499 node->showNodePathForThis(); |
2500 } | 2500 } |
2501 | 2501 |
2502 #endif | 2502 #endif |
OLD | NEW |