diff options
author | Tom Sepez <tsepez@chromium.org> | 2015-09-17 15:40:06 -0700 |
---|---|---|
committer | Tom Sepez <tsepez@chromium.org> | 2015-09-17 15:40:06 -0700 |
commit | d5a0e95db021e50064cc2e761f023b75c24b72a2 (patch) | |
tree | b355b190bdec2a9e8cc56d8f4b2be888a891fc6f /fpdfsdk/src/javascript/JS_Runtime.cpp | |
parent | 39bfe122b4867601051c56562a5ab9cf6be644ad (diff) | |
download | pdfium-d5a0e95db021e50064cc2e761f023b75c24b72a2.tar.xz |
Merge to XFA: Don't pass null isolates to FXJS_ when we have a real isolate.
(cherry picked from commit 34b39e1d4fa0b16d47770b823230344356cc451a)
Original Review URL: https://codereview.chromium.org/1350703003 .
TBR=thestig@chromium.org
Review URL: https://codereview.chromium.org/1342403005 .
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Runtime.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/JS_Runtime.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/javascript/JS_Runtime.cpp b/fpdfsdk/src/javascript/JS_Runtime.cpp index bbe9f6e8c8..643cefb92f 100644 --- a/fpdfsdk/src/javascript/JS_Runtime.cpp +++ b/fpdfsdk/src/javascript/JS_Runtime.cpp @@ -205,7 +205,7 @@ void CJS_Runtime::SetReaderDocument(CPDFSDK_Document* pReaderDoc) { if (FXJS_GetObjDefnID(pThis) == FXJS_GetObjDefnID(GetIsolate(), L"Document")) { if (CJS_Document* pJSDocument = - (CJS_Document*)FXJS_GetPrivate(pThis)) { + (CJS_Document*)FXJS_GetPrivate(GetIsolate(), pThis)) { if (Document* pDocument = (Document*)pJSDocument->GetEmbedObject()) pDocument->AttachDoc(pReaderDoc); } |