diff options
author | Lei Zhang <thestig@chromium.org> | 2015-10-08 12:04:47 -0700 |
---|---|---|
committer | Lei Zhang <thestig@chromium.org> | 2015-10-08 12:04:47 -0700 |
commit | 3fa115bf1d6b86fcdbc9a139c6ac789ea2294c2e (patch) | |
tree | cb857d2dd6a1003e30487e0a7eedd68519c43cb7 /fpdfsdk/include/jsapi | |
parent | ba038bc14bfeb4d011d57f388871f7f14c4c3c22 (diff) | |
download | pdfium-3fa115bf1d6b86fcdbc9a139c6ac789ea2294c2e.tar.xz |
Merge to XFA: Only call DefineJSObjects() once for the global V8 isolate.
BUG=539106
TBR=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1386823002 .
(cherry picked from commit 7dfe5929282cb6d78d7b5e32e1d72e9db99d3066)
Review URL: https://codereview.chromium.org/1400503003 .
Diffstat (limited to 'fpdfsdk/include/jsapi')
-rw-r--r-- | fpdfsdk/include/jsapi/fxjs_v8.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/fpdfsdk/include/jsapi/fxjs_v8.h b/fpdfsdk/include/jsapi/fxjs_v8.h index f4f9d46852..d3cd4ebe6e 100644 --- a/fpdfsdk/include/jsapi/fxjs_v8.h +++ b/fpdfsdk/include/jsapi/fxjs_v8.h @@ -78,6 +78,9 @@ void FXJS_Release(); // created. bool FXJS_GetIsolate(v8::Isolate** pResultIsolate); +// Get the global isolate's ref count. +size_t FXJS_GlobalIsolateRefCount(); + // Call before making FXJS_Define* calls. Resources allocated here are cleared // as part of FXJS_ReleaseRuntime(). void FXJS_PrepareIsolate(v8::Isolate* pIsolate); |