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:39:51 -0700 |
commit | f15807369f2fc3c346cfe06b1d9d847de0feee1d (patch) | |
tree | 266821bacd0a2ce316e8ee41dbaf89b471234de6 /fpdfsdk/src/javascript/Document.cpp | |
parent | 6fcecb529007b65596f0ce30efde571f820df56b (diff) | |
download | pdfium-f15807369f2fc3c346cfe06b1d9d847de0feee1d.tar.xz |
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 b1a2ad7688..f823d8084f 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); +} + |