Index: Source/core/dom/StaticNodeList.cpp |
diff --git a/Source/core/dom/StaticNodeList.cpp b/Source/core/dom/StaticNodeList.cpp |
index f70db5e789d87ca864c3473e3cd5f6eebc2a3bc5..644f5cd88d6cac5479db9b7a8afde7c7788000e3 100644 |
--- a/Source/core/dom/StaticNodeList.cpp |
+++ b/Source/core/dom/StaticNodeList.cpp |
@@ -37,15 +37,13 @@ PassRefPtrWillBeRawPtr<StaticNodeList> StaticNodeList::adopt(WillBeHeapVector<Re |
{ |
RefPtrWillBeRawPtr<StaticNodeList> nodeList = adoptRefWillBeNoop(new StaticNodeList); |
nodeList->m_nodes.swap(nodes); |
- if (nodeList->AllocationSize() > externalMemoryReportSizeLimit) |
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(nodeList->AllocationSize()); |
+ v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(nodeList->AllocationSize()); |
return nodeList.release(); |
} |
StaticNodeList::~StaticNodeList() |
{ |
- if (AllocationSize() > externalMemoryReportSizeLimit) |
- v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-AllocationSize()); |
+ v8::Isolate::GetCurrent()->AdjustAmountOfExternalAllocatedMemory(-AllocationSize()); |
} |
unsigned StaticNodeList::length() const |