| Index: third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
|
| diff --git a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
|
| index 466d5ed12744f7850d6da0a274a0695cc69ab427..722a5ecfaca3c58b14ca01e4367ea42c330ae7f1 100644
|
| --- a/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
|
| +++ b/third_party/WebKit/Source/wtf/typed_arrays/ArrayBufferContents.cpp
|
| @@ -139,11 +139,11 @@ void ArrayBufferContents::DataHolder::allocateNew(unsigned sizeInBytes, SharingT
|
| {
|
| ASSERT(!m_data);
|
| void* data = nullptr;
|
| - if (s_adjustAmountOfExternalAllocatedMemoryFunction)
|
| - s_adjustAmountOfExternalAllocatedMemoryFunction(static_cast<int>(sizeInBytes));
|
| allocateMemory(sizeInBytes, policy, data);
|
| m_data = data;
|
| m_sizeInBytes = data ? sizeInBytes : 0;
|
| + if (s_adjustAmountOfExternalAllocatedMemoryFunction)
|
| + s_adjustAmountOfExternalAllocatedMemoryFunction(static_cast<int>(m_sizeInBytes));
|
| m_isShared = isShared;
|
| }
|
|
|
|
|