From ddaa40fe873070d3aae9a21b9a93848fc7e809f1 Mon Sep 17 00:00:00 2001 From: Tom Sepez Date: Wed, 6 Jun 2018 18:30:15 +0000 Subject: Stop using some v8::Context slot to find runtime. Instead, use the object binding's pointer. Puts the cart back behind the horse. Change-Id: I4c06ae991b871c6e90b0e6c70b69886addca2354 Reviewed-on: https://pdfium-review.googlesource.com/33630 Commit-Queue: dsinclair Reviewed-by: dsinclair --- fxjs/cfxjs_engine.h | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'fxjs/cfxjs_engine.h') diff --git a/fxjs/cfxjs_engine.h b/fxjs/cfxjs_engine.h index d1fb70cc28..0c9d70d83d 100644 --- a/fxjs/cfxjs_engine.h +++ b/fxjs/cfxjs_engine.h @@ -85,7 +85,7 @@ class CFXJS_Engine : public CFX_V8 { static CFXJS_Engine* EngineFromContext(v8::Local pContext); static int GetObjDefnID(v8::Local pObj); - + static CJS_Object* GetObjectPrivate(v8::Local pObj); static void SetObjectPrivate(v8::Local pObj, std::unique_ptr p); static void FreeObjectPrivate(v8::Local pObj); @@ -128,9 +128,6 @@ class CFXJS_Engine : public CFX_V8 { v8::Local GetThisObj(); v8::Local NewFXJSBoundObject(int nObjDefnID, bool bStatic = false); - // Retrieve native object binding. - CJS_Object* GetObjectPrivate(v8::Local pObj); - void Error(const WideString& message); v8::Local GetV8Context() { -- cgit v1.2.3