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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 #include "core/page/ContextMenuController.h" | 83 #include "core/page/ContextMenuController.h" |
84 #include "core/page/Page.h" | 84 #include "core/page/Page.h" |
85 #include "core/svg/graphics/SVGImage.h" | 85 #include "core/svg/graphics/SVGImage.h" |
86 #include "platform/EventDispatchForbiddenScope.h" | 86 #include "platform/EventDispatchForbiddenScope.h" |
87 #include "platform/TraceEvent.h" | 87 #include "platform/TraceEvent.h" |
88 #include "platform/TracedValue.h" | 88 #include "platform/TracedValue.h" |
89 #include "wtf/HashSet.h" | 89 #include "wtf/HashSet.h" |
90 #include "wtf/Partitions.h" | 90 #include "wtf/Partitions.h" |
91 #include "wtf/PassOwnPtr.h" | 91 #include "wtf/PassOwnPtr.h" |
92 #include "wtf/RefCountedLeakCounter.h" | 92 #include "wtf/RefCountedLeakCounter.h" |
| 93 #include "wtf/SizeAssertions.h" |
93 #include "wtf/Vector.h" | 94 #include "wtf/Vector.h" |
94 #include "wtf/text/CString.h" | 95 #include "wtf/text/CString.h" |
95 #include "wtf/text/StringBuilder.h" | 96 #include "wtf/text/StringBuilder.h" |
96 | 97 |
97 namespace blink { | 98 namespace blink { |
98 | 99 |
99 using namespace HTMLNames; | 100 using namespace HTMLNames; |
100 | 101 |
101 struct SameSizeAsNode : NODE_BASE_CLASSES { | 102 ASSERT_SIZE(Node, 36, 64); |
102 uint32_t m_nodeFlags; | |
103 void* m_pointer[5]; | |
104 }; | |
105 | |
106 static_assert(sizeof(Node) <= sizeof(SameSizeAsNode), "Node should stay small"); | |
107 | 103 |
108 #if !ENABLE(OILPAN) | 104 #if !ENABLE(OILPAN) |
109 void* Node::operator new(size_t size) | 105 void* Node::operator new(size_t size) |
110 { | 106 { |
111 ASSERT(isMainThread()); | 107 ASSERT(isMainThread()); |
112 return partitionAlloc(WTF::Partitions::nodePartition(), size); | 108 return partitionAlloc(WTF::Partitions::nodePartition(), size); |
113 } | 109 } |
114 | 110 |
115 void Node::operator delete(void* ptr) | 111 void Node::operator delete(void* ptr) |
116 { | 112 { |
(...skipping 2274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2391 | 2387 |
2392 void showNodePath(const blink::Node* node) | 2388 void showNodePath(const blink::Node* node) |
2393 { | 2389 { |
2394 if (node) | 2390 if (node) |
2395 node->showNodePathForThis(); | 2391 node->showNodePathForThis(); |
2396 else | 2392 else |
2397 fprintf(stderr, "Cannot showNodePath for (nil)\n"); | 2393 fprintf(stderr, "Cannot showNodePath for (nil)\n"); |
2398 } | 2394 } |
2399 | 2395 |
2400 #endif | 2396 #endif |
OLD | NEW |