From e99ee7f3e550f7706a3e2d8105ccc55553a9badb Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Thu, 1 Feb 2018 20:24:43 +0000 Subject: Introduce CXFJS_Engine::EngineFromContext/SetEngineInContext helpers No functional change, but expose helpers likely to be needed by next steps. Rename CXFJS_Engine::CurrentEngineFromIsolate to be more accurately named along the way. Change-Id: Iaf2d15a09cfed85705d24ee056e78edf0660ce59 Reviewed-on: https://pdfium-review.googlesource.com/25090 Reviewed-by: dsinclair Commit-Queue: Tom Sepez --- fxjs/JS_Define.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fxjs/JS_Define.h') diff --git a/fxjs/JS_Define.h b/fxjs/JS_Define.h index 08654b96e1..f45738e847 100644 --- a/fxjs/JS_Define.h +++ b/fxjs/JS_Define.h @@ -66,7 +66,7 @@ void JSPropGetter(const char* prop_name_string, v8::Local property, const v8::PropertyCallbackInfo& info) { CJS_Runtime* pRuntime = - CJS_Runtime::CurrentRuntimeFromIsolate(info.GetIsolate()); + CJS_Runtime::RuntimeFromIsolateCurrentContext(info.GetIsolate()); if (!pRuntime) return; @@ -94,7 +94,7 @@ void JSPropSetter(const char* prop_name_string, v8::Local value, const v8::PropertyCallbackInfo& info) { CJS_Runtime* pRuntime = - CJS_Runtime::CurrentRuntimeFromIsolate(info.GetIsolate()); + CJS_Runtime::RuntimeFromIsolateCurrentContext(info.GetIsolate()); if (!pRuntime) return; @@ -118,7 +118,7 @@ void JSMethod(const char* method_name_string, const char* class_name_string, const v8::FunctionCallbackInfo& info) { CJS_Runtime* pRuntime = - CJS_Runtime::CurrentRuntimeFromIsolate(info.GetIsolate()); + CJS_Runtime::RuntimeFromIsolateCurrentContext(info.GetIsolate()); if (!pRuntime) return; -- cgit v1.2.3