Index: Source/core/dom/Node.cpp |
diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
index 2e20859f1ca9aad7660bf6303da674e1625be617..9ea29283f2974012d867906e8e5678b9107b18c3 100644 |
--- a/Source/core/dom/Node.cpp |
+++ b/Source/core/dom/Node.cpp |
@@ -104,6 +104,7 @@ |
#include "core/page/Page.h" |
#include "core/page/Settings.h" |
#include "core/platform/Logging.h" |
+#include "core/platform/Partitions.h" |
#include "core/platform/PlatformMouseEvent.h" |
#include "core/platform/PlatformWheelEvent.h" |
#include "core/rendering/RenderBlock.h" |
@@ -112,7 +113,6 @@ |
#include "core/rendering/RenderView.h" |
#include "core/storage/StorageEvent.h" |
#include "wtf/HashSet.h" |
-#include "wtf/PartitionAlloc.h" |
#include "wtf/PassOwnPtr.h" |
#include "wtf/RefCountedLeakCounter.h" |
#include "wtf/UnusedParam.h" |
@@ -131,11 +131,9 @@ namespace WebCore { |
using namespace HTMLNames; |
#if ENABLE(PARTITION_ALLOC) |
-static PartitionRoot root; |
- |
void* Node::operator new(size_t size) |
{ |
- return partitionAlloc(&root, size); |
+ return partitionAlloc(Partitions::getObjectModelPartition(), size); |
} |
void Node::operator delete(void* ptr) |
@@ -144,20 +142,6 @@ void Node::operator delete(void* ptr) |
} |
#endif // ENABLE(PARTITION_ALLOC) |
-void Node::init() |
-{ |
-#if ENABLE(PARTITION_ALLOC) |
- partitionAllocInit(&root); |
-#endif |
-} |
- |
-void Node::shutdown() |
-{ |
-#if ENABLE(PARTITION_ALLOC) |
- partitionAllocShutdown(&root); |
-#endif |
-} |
- |
bool Node::isSupported(const String& feature, const String& version) |
{ |
return DOMImplementation::hasFeature(feature, version); |