summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_engine.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-06-07 00:44:25 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-06-07 00:44:25 +0000
commitd5c4ab1ef458d158e268b5293c231928c59aacb9 (patch)
treecdd99cc7513e8b59282c33dffe3d94e2ae2533e6 /fxjs/cfxjse_engine.cpp
parent10569fcd4a3a9fb0140aa641372bcd462c6aa2f3 (diff)
downloadpdfium-d5c4ab1ef458d158e268b5293c231928c59aacb9.tar.xz
Remove v8::Context slot usage entierly from fxjs
Its no longer required. Change-Id: I180ca99817352a91b6d9d7c9b45985cd96dc730e Reviewed-on: https://pdfium-review.googlesource.com/34290 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_engine.cpp')
-rw-r--r--fxjs/cfxjse_engine.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/fxjs/cfxjse_engine.cpp b/fxjs/cfxjse_engine.cpp
index 2361a64441..21aed7002b 100644
--- a/fxjs/cfxjse_engine.cpp
+++ b/fxjs/cfxjse_engine.cpp
@@ -99,7 +99,6 @@ CFXJSE_Engine::CFXJSE_Engine(CXFA_Document* pDocument,
m_pSubordinateRuntime(fxjs_runtime),
m_pDocument(pDocument),
m_JsContext(CFXJSE_Context::Create(fxjs_runtime->GetIsolate(),
- fxjs_runtime,
&GlobalClassDescriptor,
pDocument->GetRoot())),
m_pJsClass(nullptr),
@@ -464,9 +463,9 @@ CFXJSE_Context* CFXJSE_Engine::CreateVariablesContext(CXFA_Node* pScriptNode,
if (!pScriptNode || !pSubform)
return nullptr;
- auto pNewContext = CFXJSE_Context::Create(
- GetIsolate(), m_pSubordinateRuntime.Get(), &VariablesClassDescriptor,
- new CXFA_ThisProxy(pSubform, pScriptNode));
+ auto pNewContext =
+ CFXJSE_Context::Create(GetIsolate(), &VariablesClassDescriptor,
+ new CXFA_ThisProxy(pSubform, pScriptNode));
RemoveBuiltInObjs(pNewContext.get());
pNewContext->EnableCompatibleMode();
CFXJSE_Context* pResult = pNewContext.get();