summaryrefslogtreecommitdiff
path: root/fxjs/cfxjse_engine.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-03-27 16:27:34 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-03-27 16:27:34 +0000
commit1f12904e10b3dcfde861f4befeaec34519f2d6d4 (patch)
tree8c0ec0dfbf60277c7db9332b9932e3cac4501588 /fxjs/cfxjse_engine.cpp
parentc90adc58b97200d20b0532bde95b79dcba00637f (diff)
downloadpdfium-1f12904e10b3dcfde861f4befeaec34519f2d6d4.tar.xz
Remove CXFA_FFNotify proxy methods
This CL removes proxy methods from CXFA_FFNotify and calls them directly. Change-Id: I1fecc625e0b81b659baeffc9ca567c5c20e12c23 Reviewed-on: https://pdfium-review.googlesource.com/29252 Commit-Queue: dsinclair <dsinclair@chromium.org> Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fxjs/cfxjse_engine.cpp')
-rw-r--r--fxjs/cfxjse_engine.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/fxjs/cfxjse_engine.cpp b/fxjs/cfxjse_engine.cpp
index da117f5272..c634c72a43 100644
--- a/fxjs/cfxjse_engine.cpp
+++ b/fxjs/cfxjse_engine.cpp
@@ -18,6 +18,7 @@
#include "third_party/base/ptr_util.h"
#include "third_party/base/stl_util.h"
#include "xfa/fxfa/cxfa_eventparam.h"
+#include "xfa/fxfa/cxfa_ffdoc.h"
#include "xfa/fxfa/cxfa_ffnotify.h"
#include "xfa/fxfa/parser/cxfa_document.h"
#include "xfa/fxfa/parser/cxfa_localemgr.h"
@@ -202,8 +203,9 @@ void CFXJSE_Engine::GlobalPropertySetter(CFXJSE_Value* pObject,
if (!pNotify)
return;
- pNotify->GetDocEnvironment()->SetPropertyInNonXFAGlobalObject(
- pNotify->GetHDOC(), szPropName, pValue);
+ CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+ hDoc->GetDocEnvironment()->SetPropertyInNonXFAGlobalObject(hDoc, szPropName,
+ pValue);
}
void CFXJSE_Engine::GlobalPropertyGetter(CFXJSE_Value* pObject,
@@ -259,8 +261,9 @@ void CFXJSE_Engine::GlobalPropertyGetter(CFXJSE_Value* pObject,
if (!pNotify)
return;
- pNotify->GetDocEnvironment()->GetPropertyFromNonXFAGlobalObject(
- pNotify->GetHDOC(), szPropName, pValue);
+ CXFA_FFDoc* hDoc = pNotify->GetHDOC();
+ hDoc->GetDocEnvironment()->GetPropertyFromNonXFAGlobalObject(hDoc, szPropName,
+ pValue);
}
int32_t CFXJSE_Engine::GlobalPropTypeGetter(CFXJSE_Value* pOriginalValue,