Chromium Code Reviews| Index: Source/core/dom/Node.cpp |
| diff --git a/Source/core/dom/Node.cpp b/Source/core/dom/Node.cpp |
| index f81607e3888e9cbc4097c45d2a157aa6a0920ec6..6c823ce22dfd206f4b11c44fb7d4b8e69b0db54a 100644 |
| --- a/Source/core/dom/Node.cpp |
| +++ b/Source/core/dom/Node.cpp |
| @@ -107,12 +107,15 @@ using namespace HTMLNames; |
| void* Node::operator new(size_t size) |
| { |
| ASSERT(isMainThread()); |
| - return partitionAlloc(Partitions::getObjectModelPartition(), size); |
| + void* ptr = partitionAlloc(Partitions::getObjectModelPartition(), size); |
| + Partitions::addDOMMemoryUsage(1024);//partitionAllocGetSize(ptr)); |
|
esprehn
2014/06/05 01:04:26
This still seems wrong, why aren't you just report
|
| + return ptr; |
| } |
| void Node::operator delete(void* ptr) |
| { |
| ASSERT(isMainThread()); |
| + Partitions::subtractDOMMemoryUsage(1024);//partitionAllocGetSize(ptr)); |
| partitionFree(ptr); |
| } |
| #endif |