diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-10-02 16:43:15 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-10-02 16:43:15 -0700 |
commit | 3dedace9623fef6161a8666e53a4ab2b9be61e4c (patch) | |
tree | 78fba57e1a3edcd064dead99da9a01e8a56055eb /fpdfsdk/include/javascript | |
parent | ac67d4765a8ac36cd00c9fc8b6f2b80a3e1cff72 (diff) | |
download | pdfium-3dedace9623fef6161a8666e53a4ab2b9be61e4c.tar.xz |
Pass v8::Isolate to PDFium at init time.
Move the external isolate and embedder slot from the
IPDF_JSPlatforms struct supplied at the
FPDFDOC_InitFormFillEnvironment() call time to arguments to
the FPDF_InitLibraryWithConfig() call.
This has several benefits:
-- Avoids the crash that could happen if multiple
FPDFDOC_InitFormFillEnvironmen() calls should happen to be
made by an embedder with different slot values.
-- Down the road, for XFA, there may be XFA but no FormFill
environment.
We support both forms for the time being, until the chrome
side catches up, at which point we will deprecate the old
way.
R=thestig@chromium.org
Review URL: https://codereview.chromium.org/1367033002 .
Diffstat (limited to 'fpdfsdk/include/javascript')
-rw-r--r-- | fpdfsdk/include/javascript/JS_Runtime.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/fpdfsdk/include/javascript/JS_Runtime.h b/fpdfsdk/include/javascript/JS_Runtime.h index 67ce9c0414..dd21e6d2f1 100644 --- a/fpdfsdk/include/javascript/JS_Runtime.h +++ b/fpdfsdk/include/javascript/JS_Runtime.h @@ -10,7 +10,6 @@ #include <set> #include <utility> -#include "../../../third_party/base/nonstd_unique_ptr.h" #include "../../../core/include/fxcrt/fx_basic.h" #include "../jsapi/fxjs_v8.h" #include "IJavaScript.h" @@ -55,7 +54,6 @@ class CJS_Runtime : public IFXJS_Runtime { std::set<FieldEvent> m_FieldEventSet; v8::Isolate* m_isolate; bool m_isolateManaged; - nonstd::unique_ptr<FXJS_ArrayBufferAllocator> m_pArrayBufferAllocator; v8::Global<v8::Context> m_context; }; |