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_field.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_field.cpp')
-rw-r--r-- | fxjs/cjs_field.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fxjs/cjs_field.cpp b/fxjs/cjs_field.cpp index cd97372ad0..45715e22a0 100644 --- a/fxjs/cjs_field.cpp +++ b/fxjs/cjs_field.cpp @@ -2274,8 +2274,8 @@ CJS_Return CJS_Field::buttonGetIcon( if (!pFormControl) return CJS_Return(JSMessage::kBadObjectError); - v8::Local<v8::Object> pObj = - pRuntime->NewFXJSBoundObject(CJS_Icon::GetObjDefnID()); + v8::Local<v8::Object> pObj = pRuntime->NewFXJSBoundObject( + CJS_Icon::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pObj.IsEmpty()) return CJS_Return(JSMessage::kBadObjectError); @@ -2386,8 +2386,8 @@ CJS_Return CJS_Field::getArray( v8::Local<v8::Array> FormFieldArray = pRuntime->NewArray(); int j = 0; for (const auto& pStr : swSort) { - v8::Local<v8::Object> pObj = - pRuntime->NewFXJSBoundObject(CJS_Field::GetObjDefnID()); + v8::Local<v8::Object> pObj = pRuntime->NewFXJSBoundObject( + CJS_Field::GetObjDefnID(), FXJSOBJTYPE_DYNAMIC); if (pObj.IsEmpty()) return CJS_Return(JSMessage::kBadObjectError); |