diff options
author | Tom Sepez <tsepez@chromium.org> | 2017-02-23 12:14:10 -0800 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-02-23 20:43:24 +0000 |
commit | 77f6d0f8e64596992df4d2a046cc86f051574e02 (patch) | |
tree | ea57a90f435787775120dcb804b3c662db5c1b82 /fpdfsdk/javascript/JS_EventHandler.h | |
parent | b9c69ab7f1338684ffddbc1076052c546f1a95ad (diff) | |
download | pdfium-77f6d0f8e64596992df4d2a046cc86f051574e02.tar.xz |
Observe all formfill environment pointer in JS objects.
Preventitve measure to decouple JS object lifetimes from C++
objects.
Change-Id: I964a52590fcd0bfc26ac6055a7daf8aa33d455f3
Reviewed-on: https://pdfium-review.googlesource.com/2828
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/javascript/JS_EventHandler.h')
-rw-r--r-- | fpdfsdk/javascript/JS_EventHandler.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/javascript/JS_EventHandler.h b/fpdfsdk/javascript/JS_EventHandler.h index ff8ff9e301..b9836b04e4 100644 --- a/fpdfsdk/javascript/JS_EventHandler.h +++ b/fpdfsdk/javascript/JS_EventHandler.h @@ -9,10 +9,10 @@ #include "core/fxcrt/fx_string.h" #include "core/fxcrt/fx_system.h" +#include "fpdfsdk/cpdfsdk_formfillenvironment.h" class CJS_EventContext; class CPDFSDK_Annot; -class CPDFSDK_FormFillEnvironment; class CPDF_Bookmark; class CPDF_FormField; class Field; @@ -189,8 +189,8 @@ class CJS_EventHandler { bool m_bRcDu; CPDF_Bookmark* m_pTargetBookMark; - CPDFSDK_FormFillEnvironment* m_pTargetFormFillEnv; - CPDFSDK_Annot* m_pTargetAnnot; + CPDFSDK_FormFillEnvironment::ObservedPtr m_pTargetFormFillEnv; + CPDFSDK_Annot::ObservedPtr m_pTargetAnnot; }; #endif // FPDFSDK_JAVASCRIPT_JS_EVENTHANDLER_H_ |