summaryrefslogtreecommitdiff
path: root/fpdfsdk/src/javascript/JS_Object.cpp
diff options
context:
space:
mode:
authorTom Sepez <tsepez@chromium.org>2015-11-06 08:19:44 -0800
committerTom Sepez <tsepez@chromium.org>2015-11-06 08:19:44 -0800
commit93f191bb011508a8d4e66746135e8ba8e9583870 (patch)
treec0922e0a2ef4e21da381665babb018e3007243cc /fpdfsdk/src/javascript/JS_Object.cpp
parent34bb6c58fe60206a08dc0a1f37b7cfe83e8c762c (diff)
downloadpdfium-93f191bb011508a8d4e66746135e8ba8e9583870.tar.xz
Remove FXJS_GetRuntime
Its pointless to have a function that gets the isolate given a v8::object, since v8 gives us that directly. Also remove some CreationContext() calls, since they are only used to get the isolate, and we can do so directly. R=jochen@chromium.org Review URL: https://codereview.chromium.org/1413733004 .
Diffstat (limited to 'fpdfsdk/src/javascript/JS_Object.cpp')
-rw-r--r--fpdfsdk/src/javascript/JS_Object.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpdfsdk/src/javascript/JS_Object.cpp b/fpdfsdk/src/javascript/JS_Object.cpp
index 883ecc82ae..1e649ae791 100644
--- a/fpdfsdk/src/javascript/JS_Object.cpp
+++ b/fpdfsdk/src/javascript/JS_Object.cpp
@@ -61,7 +61,7 @@ void DisposeObject(const v8::WeakCallbackInfo<CJS_Object>& data) {
}
CJS_Object::CJS_Object(v8::Local<v8::Object> pObject) {
- m_pIsolate = pObject->CreationContext()->GetIsolate();
+ m_pIsolate = pObject->GetIsolate();
m_pV8Object.Reset(m_pIsolate, pObject);
}