diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-02-07 21:07:24 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-02-07 21:07:24 +0000 |
commit | 9ad9a5fc81a36ab406ff49408dd0814d350bbc7e (patch) | |
tree | ec46a8cbec08c17d5932bd330c4fd4b5baa2c180 /fxjs/cjs_eventhandler.cpp | |
parent | 161f992a81e400eeebba49387f174d836750d624 (diff) | |
download | pdfium-9ad9a5fc81a36ab406ff49408dd0814d350bbc7e.tar.xz |
Split creation of ordinary object and bound objects in FXJS.chromium/3343
One can be performed by the CJS_V8 layer, the other requires the
full FXJS mechanism. Avoids using -1 as a special case.
Change-Id: I4a14ccb6a7fea393f84b70a07ada03b1a83c7d36
Reviewed-on: https://pdfium-review.googlesource.com/25830
Reviewed-by: dsinclair <dsinclair@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/cjs_eventhandler.cpp')
-rw-r--r-- | fxjs/cjs_eventhandler.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cjs_eventhandler.cpp b/fxjs/cjs_eventhandler.cpp index 6e7e840250..b09ca7e733 100644 --- a/fxjs/cjs_eventhandler.cpp +++ b/fxjs/cjs_eventhandler.cpp @@ -590,12 +590,12 @@ bool CJS_EventHandler::Shift() const { CJS_Field* CJS_EventHandler::Source() { CJS_Runtime* pRuntime = m_pJSEventContext->GetJSRuntime(); v8::Local<v8::Object> pDocObj = - pRuntime->NewFxDynamicObj(CJS_Document::GetObjDefnID()); + pRuntime->NewFXJSBoundObject(CJS_Document::GetObjDefnID()); if (pDocObj.IsEmpty()) return nullptr; v8::Local<v8::Object> pFieldObj = - pRuntime->NewFxDynamicObj(CJS_Field::GetObjDefnID()); + pRuntime->NewFXJSBoundObject(CJS_Field::GetObjDefnID()); if (pFieldObj.IsEmpty()) return nullptr; @@ -615,12 +615,12 @@ CJS_Field* CJS_EventHandler::Source() { CJS_Field* CJS_EventHandler::Target_Field() { CJS_Runtime* pRuntime = m_pJSEventContext->GetJSRuntime(); v8::Local<v8::Object> pDocObj = - pRuntime->NewFxDynamicObj(CJS_Document::GetObjDefnID()); + pRuntime->NewFXJSBoundObject(CJS_Document::GetObjDefnID()); if (pDocObj.IsEmpty()) return nullptr; v8::Local<v8::Object> pFieldObj = - pRuntime->NewFxDynamicObj(CJS_Field::GetObjDefnID()); + pRuntime->NewFXJSBoundObject(CJS_Field::GetObjDefnID()); if (pFieldObj.IsEmpty()) return nullptr; |