diff options
author | JUN FANG <jun_fang@foxitsoftware.com> | 2015-04-06 12:39:51 -0700 |
---|---|---|
committer | JUN FANG <jun_fang@foxitsoftware.com> | 2015-04-06 12:44:08 -0700 |
commit | 33f6f0d9822b729f85a9ff7593ad82240ae22bf6 (patch) | |
tree | ba0d637dc9a18766a07b52c66135e58192bfc198 /fpdfsdk/src/javascript/Document.cpp | |
parent | e799e01bc6c8ef491154c555687ccaa8f9c87b6c (diff) | |
download | pdfium-33f6f0d9822b729f85a9ff7593ad82240ae22bf6.tar.xz |
Merge to XFA: Fix a fatal error due to cloning a global document object
BUG=454595
R=tsepez@chromium.org
Review URL: https://codereview.chromium.org/1053373002
Diffstat (limited to 'fpdfsdk/src/javascript/Document.cpp')
-rw-r--r-- | fpdfsdk/src/javascript/Document.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/fpdfsdk/src/javascript/Document.cpp b/fpdfsdk/src/javascript/Document.cpp index 1df4453e42..bf9f07c7e2 100644 --- a/fpdfsdk/src/javascript/Document.cpp +++ b/fpdfsdk/src/javascript/Document.cpp @@ -1947,3 +1947,9 @@ void Document::DoAnnotDelay() m_DelayData.RemoveAt(DelArray[j]); } } + +CJS_Document* Document::GetCJSDoc() const +{ + return static_cast<CJS_Document*>(m_pJSObject); +} + |