summaryrefslogtreecommitdiff
path: root/fpdfsdk/javascript/JS_EventHandler.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-10-11 12:38:01 -0700
committerCommit bot <commit-bot@chromium.org>2016-10-11 12:38:01 -0700
commit82e1767b757d96e6b81d3e42b24048a9bea387a8 (patch)
treeb7d14dfcd42ce6acf7a5552be0ff185cf0a9ed58 /fpdfsdk/javascript/JS_EventHandler.cpp
parent9fa95efa11f211a6faf9b2adb27211f784aee89a (diff)
downloadpdfium-82e1767b757d96e6b81d3e42b24048a9bea387a8.tar.xz
Convert IJS_Runtime to CPDFSDK_FormFillEnvironment
This CL changes the use of CPDFSDK_Document to CPDFSDK_FormFillEnvironment. Review-Url: https://codereview.chromium.org/2394313002
Diffstat (limited to 'fpdfsdk/javascript/JS_EventHandler.cpp')
-rw-r--r--fpdfsdk/javascript/JS_EventHandler.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/fpdfsdk/javascript/JS_EventHandler.cpp b/fpdfsdk/javascript/JS_EventHandler.cpp
index 731d803d2c..27223cfccb 100644
--- a/fpdfsdk/javascript/JS_EventHandler.cpp
+++ b/fpdfsdk/javascript/JS_EventHandler.cpp
@@ -602,9 +602,9 @@ Field* CJS_EventHandler::Source() {
CJS_Document* pJSDocument =
static_cast<CJS_Document*>(pRuntime->GetObjectPrivate(pDocObj));
Document* pDocument = (Document*)pJSDocument->GetEmbedObject();
- pDocument->AttachDoc(m_pTargetFormFillEnv
- ? m_pTargetFormFillEnv->GetSDKDocument()
- : m_pJSContext->GetFormFillEnv()->GetSDKDocument());
+ pDocument->SetFormFillEnv(m_pTargetFormFillEnv
+ ? m_pTargetFormFillEnv
+ : m_pJSContext->GetFormFillEnv());
CJS_Field* pJSField =
static_cast<CJS_Field*>(pRuntime->GetObjectPrivate(pFieldObj));
@@ -626,9 +626,9 @@ Field* CJS_EventHandler::Target_Field() {
CJS_Document* pJSDocument =
static_cast<CJS_Document*>(pRuntime->GetObjectPrivate(pDocObj));
Document* pDocument = (Document*)pJSDocument->GetEmbedObject();
- pDocument->AttachDoc(m_pTargetFormFillEnv
- ? m_pTargetFormFillEnv->GetSDKDocument()
- : m_pJSContext->GetFormFillEnv()->GetSDKDocument());
+ pDocument->SetFormFillEnv(m_pTargetFormFillEnv
+ ? m_pTargetFormFillEnv
+ : m_pJSContext->GetFormFillEnv());
CJS_Field* pJSField =
static_cast<CJS_Field*>(pRuntime->GetObjectPrivate(pFieldObj));