Remove CPDFSDK_FormFillEnvironment from fxjs/global_timer.cpp
The lower-layer fxcrt::TimerHandlerIface is sufficient. CJS_Runtime,
however still references this object at the fxjs layer.
Change-Id: I37077301e1d2ea6283cdf14f2d78670c7eaadd3b
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/58951
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/fxjs/cjs_runtime.cpp b/fxjs/cjs_runtime.cpp
index e488c26..1cded27 100644
--- a/fxjs/cjs_runtime.cpp
+++ b/fxjs/cjs_runtime.cpp
@@ -142,6 +142,10 @@
: m_EventContextArray.back().get();
}
+TimerHandlerIface* CJS_Runtime::GetTimerHandler() const {
+ return m_pFormFillEnv ? m_pFormFillEnv->GetSysHandler() : nullptr;
+}
+
void CJS_Runtime::SetFormFillEnvToDocument() {
v8::Isolate::Scope isolate_scope(GetIsolate());
v8::HandleScope handle_scope(GetIsolate());