summaryrefslogtreecommitdiff
path: root/fxjs/cfx_v8.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'fxjs/cfx_v8.cpp')
-rw-r--r--fxjs/cfx_v8.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cfx_v8.cpp b/fxjs/cfx_v8.cpp
index 4d12e3353e..73d95ae9b4 100644
--- a/fxjs/cfx_v8.cpp
+++ b/fxjs/cfx_v8.cpp
@@ -206,17 +206,17 @@ v8::Local<v8::Array> CFX_V8::ToArray(v8::Local<v8::Value> pValue) {
void* CFX_V8ArrayBufferAllocator::Allocate(size_t length) {
if (length > kMaxAllowedBytes)
return nullptr;
- return gArrayBufferPartitionAllocator.root()->AllocFlags(
+ return GetArrayBufferPartitionAllocator().root()->AllocFlags(
pdfium::base::PartitionAllocZeroFill, length, "CFX_V8ArrayBuffer");
}
void* CFX_V8ArrayBufferAllocator::AllocateUninitialized(size_t length) {
if (length > kMaxAllowedBytes)
return nullptr;
- return gArrayBufferPartitionAllocator.root()->Alloc(length,
- "CFX_V8ArrayBuffer");
+ return GetArrayBufferPartitionAllocator().root()->Alloc(length,
+ "CFX_V8ArrayBuffer");
}
void CFX_V8ArrayBufferAllocator::Free(void* data, size_t length) {
- gArrayBufferPartitionAllocator.root()->Free(data);
+ GetArrayBufferPartitionAllocator().root()->Free(data);
}