summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_formcalc_context.cpp
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-10-18 21:58:21 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-10-18 21:58:21 +0000
commit4c1ced59a6752f21fa857556a845ffad5919fbae (patch)
tree08071f54e6beaa5c044c15f79be3854134119e81 /fxjs/cfxjse_formcalc_context.cpp
parent7203104c34853f1b4d61027ea0f96c8b4b85f2bf (diff)
downloadpdfium-4c1ced59a6752f21fa857556a845ffad5919fbae.tar.xz
One more round of IWYU in fxjs/.
Also get rid of CFXJSE_FormCalcContext::m_pFMClass, which mostly goes unused. Change-Id: Idad72afaf5796e6174a5f23ad0460a8e0a93f9ab Reviewed-on: https://pdfium-review.googlesource.com/c/44273 Commit-Queue: Lei Zhang <thestig@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_formcalc_context.cpp')
-rw-r--r--fxjs/cfxjse_formcalc_context.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cfxjse_formcalc_context.cpp b/fxjs/cfxjse_formcalc_context.cpp
index 771c53ab36..f95ee831a7 100644
--- a/fxjs/cfxjse_formcalc_context.cpp
+++ b/fxjs/cfxjse_formcalc_context.cpp
@@ -15,6 +15,7 @@
#include "core/fxcrt/fx_extension.h"
#include "core/fxcrt/fx_random.h"
#include "core/fxcrt/locale_iface.h"
+#include "fxjs/cfxjse_arguments.h"
#include "fxjs/cfxjse_class.h"
#include "fxjs/cfxjse_context.h"
#include "fxjs/cfxjse_engine.h"
@@ -6180,12 +6181,11 @@ CFXJSE_FormCalcContext::CFXJSE_FormCalcContext(v8::Isolate* pScriptIsolate,
CFXJSE_Context* pScriptContext,
CXFA_Document* pDoc)
: m_pIsolate(pScriptIsolate),
- m_pFMClass(CFXJSE_Class::Create(pScriptContext,
- &kFormCalcFM2JSDescriptor,
- false)),
m_pValue(pdfium::MakeUnique<CFXJSE_Value>(pScriptIsolate)),
m_pDocument(pDoc) {
- m_pValue.get()->SetObject(this, m_pFMClass);
+ m_pValue->SetObject(
+ this,
+ CFXJSE_Class::Create(pScriptContext, &kFormCalcFM2JSDescriptor, false));
}
CFXJSE_FormCalcContext::~CFXJSE_FormCalcContext() = default;