diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-08-14 23:40:10 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-08-14 23:40:10 +0000 |
commit | 55ccb526913debb3269a33792bbd61b05656ec46 (patch) | |
tree | a98152baf9d4a5dcf1c76ecaf53cbae35720d2b8 /fxjs/cjs_eventhandler.cpp | |
parent | 48d62c3a5f57eb3397a335bea4a5a30de2fcb955 (diff) | |
download | pdfium-55ccb526913debb3269a33792bbd61b05656ec46.tar.xz |
Remove optional argument from NewFXJSBoundObject().
Additionally, we have a pre-existing enum type that is more
meaningful than just a boolean.
Change-Id: Ie6ad13a3c9b22e34dedf7a5a9b5b9cc2a49b1f03
Reviewed-on: https://pdfium-review.googlesource.com/40190
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_eventhandler.cpp')
-rw-r--r-- | fxjs/cjs_eventhandler.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fxjs/cjs_eventhandler.cpp b/fxjs/cjs_eventhandler.cpp index 884651a77b..1a4ffbbd01 100644 --- a/fxjs/cjs_eventhandler.cpp +++ b/fxjs/cjs_eventhandler.cpp @@ -576,13 +576,13 @@ bool CJS_EventHandler::Shift() const { CJS_Field* CJS_EventHandler::Source() { CJS_Runtime* pRuntime = m_pJSEventContext->GetJSRuntime(); - v8::Local<v8::Object> pDocObj = - pRuntime->NewFXJSBoundObject(CJS_Document::GetObjDefnID()); + v8::Local<v8::Object> pDocObj = pRuntime->NewFXJSBoundObject( + CJS_Document::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pDocObj.IsEmpty()) return nullptr; - v8::Local<v8::Object> pFieldObj = - pRuntime->NewFXJSBoundObject(CJS_Field::GetObjDefnID()); + v8::Local<v8::Object> pFieldObj = pRuntime->NewFXJSBoundObject( + CJS_Field::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pFieldObj.IsEmpty()) return nullptr; @@ -602,13 +602,13 @@ CJS_Field* CJS_EventHandler::Source() { CJS_Field* CJS_EventHandler::Target_Field() { CJS_Runtime* pRuntime = m_pJSEventContext->GetJSRuntime(); - v8::Local<v8::Object> pDocObj = - pRuntime->NewFXJSBoundObject(CJS_Document::GetObjDefnID()); + v8::Local<v8::Object> pDocObj = pRuntime->NewFXJSBoundObject( + CJS_Document::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pDocObj.IsEmpty()) return nullptr; - v8::Local<v8::Object> pFieldObj = - pRuntime->NewFXJSBoundObject(CJS_Field::GetObjDefnID()); + v8::Local<v8::Object> pFieldObj = pRuntime->NewFXJSBoundObject( + CJS_Field::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pFieldObj.IsEmpty()) return nullptr; |