Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(436)

Unified Diff: Source/core/dom/Node.cpp

Issue 16896019: Replace RenderArena with PartitionAlloc. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698