summaryrefslogtreecommitdiff
path: root/fxjs/JS_Define.h
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2018-02-01 20:24:43 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-01 20:24:43 +0000
commite99ee7f3e550f7706a3e2d8105ccc55553a9badb (patch)
tree253acd8343f135a7bbeef9d80c71564fca6f1a69 /fxjs/JS_Define.h
parentfb25606e584e14d60fc243e8b56eef399a4a54bd (diff)
downloadpdfium-e99ee7f3e550f7706a3e2d8105ccc55553a9badb.tar.xz
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 <dsinclair@chromium.org> Commit-Queue: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fxjs/JS_Define.h')
-rw-r--r--fxjs/JS_Define.h6
1 files changed, 3 insertions, 3 deletions
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<v8::String> property,
const v8::PropertyCallbackInfo<v8::Value>& 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<v8::Value> value,
const v8::PropertyCallbackInfo<void>& 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<v8::Value>& info) {
CJS_Runtime* pRuntime =
- CJS_Runtime::CurrentRuntimeFromIsolate(info.GetIsolate());
+ CJS_Runtime::RuntimeFromIsolateCurrentContext(info.GetIsolate());
if (!pRuntime)
return;