diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-11 12:38:01 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-11 12:38:01 -0700 |
commit | 82e1767b757d96e6b81d3e42b24048a9bea387a8 (patch) | |
tree | b7d14dfcd42ce6acf7a5552be0ff185cf0a9ed58 /fpdfsdk/javascript/JS_EventHandler.cpp | |
parent | 9fa95efa11f211a6faf9b2adb27211f784aee89a (diff) | |
download | pdfium-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.cpp | 12 |
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)); |