Pass IJS_Runtime, not IJS_Context, to native object constructors.
authorTom Sepez <tsepez@chromium.org>
Fri, 9 Oct 2015 20:14:47 +0000 (13:14 -0700)
committerTom Sepez <tsepez@chromium.org>
Fri, 9 Oct 2015 20:14:47 +0000 (13:14 -0700)
commit848a13b6777cbff8cc4aea3ab3d69eaa0b82ae6c
treed2c3a5ee4f67227ac33199f6d10caaf204c92896
parentf1c713663192368d26031a4caed1f9705f4510af
Pass IJS_Runtime, not IJS_Context, to native object constructors.

This better separates the two IJS_ classes, with the IJS_Context
taking on its proper role of describing an event. There's no need
for the event details for object creation, so this gets much
cleaner.

Move some JS error reporting code from CJS_Context to CJS_Runtime.
Make InitInstance() and ExitInstance() voids, they always return
TRUE and we never check the result anyways.

R=thestig@chromium.org

Review URL: https://codereview.chromium.org/1389163007 .
21 files changed:
fpdfsdk/include/javascript/IJavaScript.h
fpdfsdk/include/jsapi/fxjs_v8.h
fpdfsdk/src/fsdk_actionhandler.cpp
fpdfsdk/src/fsdk_baseform.cpp
fpdfsdk/src/javascript/Document.cpp
fpdfsdk/src/javascript/Document.h
fpdfsdk/src/javascript/Field.cpp
fpdfsdk/src/javascript/Field.h
fpdfsdk/src/javascript/JS_Context.cpp
fpdfsdk/src/javascript/JS_Context.h
fpdfsdk/src/javascript/JS_Define.h
fpdfsdk/src/javascript/JS_EventHandler.cpp
fpdfsdk/src/javascript/JS_Object.h
fpdfsdk/src/javascript/JS_Runtime.cpp
fpdfsdk/src/javascript/JS_Runtime.h
fpdfsdk/src/javascript/JS_Runtime_Stub.cpp
fpdfsdk/src/javascript/app.cpp
fpdfsdk/src/javascript/global.cpp
fpdfsdk/src/javascript/global.h
fpdfsdk/src/jsapi/fxjs_v8.cpp
fpdfsdk/src/jsapi/fxjs_v8_embeddertest.cpp