Index: fpdfsdk/src/javascript/JS_Define.h |
diff --git a/fpdfsdk/src/javascript/JS_Define.h b/fpdfsdk/src/javascript/JS_Define.h |
index 252c50ff1b12862e86c7f33858b13bc158ff5187..174e9aeaee7d35fbb1da41ee74df7b42fa39f834 100644 |
--- a/fpdfsdk/src/javascript/JS_Define.h |
+++ b/fpdfsdk/src/javascript/JS_Define.h |
@@ -82,13 +82,13 @@ void JSPropGetter(const char* prop_name_string, |
static_cast<CJS_Runtime*>(FXJS_GetRuntimeFromIsolate(isolate)); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Object* pJSObj = (CJS_Object*)FXJS_GetPrivate(isolate, info.Holder()); |
C* pObj = reinterpret_cast<C*>(pJSObj->GetEmbedObject()); |
CFX_WideString sError; |
CJS_PropValue value(pRuntime); |
value.StartGetting(); |
- if (!(pObj->*M)(pRuntimeContext, value, sError)) { |
+ if (!(pObj->*M)(pContext, value, sError)) { |
FXJS_Error(isolate, JSFormatErrorString(class_name_string, prop_name_string, |
sError)); |
return; |
@@ -108,13 +108,13 @@ void JSPropSetter(const char* prop_name_string, |
static_cast<CJS_Runtime*>(FXJS_GetRuntimeFromIsolate(isolate)); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Object* pJSObj = (CJS_Object*)FXJS_GetPrivate(isolate, info.Holder()); |
C* pObj = reinterpret_cast<C*>(pJSObj->GetEmbedObject()); |
CFX_WideString sError; |
CJS_PropValue propValue(CJS_Value(pRuntime, value, CJS_Value::VT_unknown)); |
propValue.StartSetting(); |
- if (!(pObj->*M)(pRuntimeContext, propValue, sError)) { |
+ if (!(pObj->*M)(pContext, propValue, sError)) { |
FXJS_Error(isolate, JSFormatErrorString(class_name_string, prop_name_string, |
sError)); |
} |
@@ -147,7 +147,7 @@ void JSMethod(const char* method_name_string, |
static_cast<CJS_Runtime*>(FXJS_GetRuntimeFromIsolate(isolate)); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Parameters parameters; |
for (unsigned int i = 0; i < (unsigned int)info.Length(); i++) { |
parameters.push_back(CJS_Value(pRuntime, info[i], CJS_Value::VT_unknown)); |
@@ -156,7 +156,7 @@ void JSMethod(const char* method_name_string, |
CJS_Object* pJSObj = (CJS_Object*)FXJS_GetPrivate(isolate, info.Holder()); |
C* pObj = reinterpret_cast<C*>(pJSObj->GetEmbedObject()); |
CFX_WideString sError; |
- if (!(pObj->*M)(pRuntimeContext, parameters, valueRes, sError)) { |
+ if (!(pObj->*M)(pContext, parameters, valueRes, sError)) { |
FXJS_Error(isolate, JSFormatErrorString(class_name_string, |
method_name_string, sError)); |
return; |
@@ -370,7 +370,7 @@ void JSSpecialPropGet(const char* class_name, |
static_cast<CJS_Runtime*>(FXJS_GetRuntimeFromIsolate(isolate)); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Object* pJSObj = |
reinterpret_cast<CJS_Object*>(FXJS_GetPrivate(isolate, info.Holder())); |
Alt* pObj = reinterpret_cast<Alt*>(pJSObj->GetEmbedObject()); |
@@ -380,7 +380,7 @@ void JSSpecialPropGet(const char* class_name, |
CFX_WideString sError; |
CJS_PropValue value(pRuntime); |
value.StartGetting(); |
- if (!pObj->DoProperty(pRuntimeContext, propname.c_str(), value, sError)) { |
+ if (!pObj->DoProperty(pContext, propname.c_str(), value, sError)) { |
FXJS_Error(isolate, JSFormatErrorString(class_name, "GetProperty", sError)); |
return; |
} |
@@ -397,7 +397,7 @@ void JSSpecialPropPut(const char* class_name, |
static_cast<CJS_Runtime*>(FXJS_GetRuntimeFromIsolate(isolate)); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Object* pJSObj = |
reinterpret_cast<CJS_Object*>(FXJS_GetPrivate(isolate, info.Holder())); |
Alt* pObj = reinterpret_cast<Alt*>(pJSObj->GetEmbedObject()); |
@@ -407,7 +407,7 @@ void JSSpecialPropPut(const char* class_name, |
CFX_WideString sError; |
CJS_PropValue PropValue(CJS_Value(pRuntime, value, CJS_Value::VT_unknown)); |
PropValue.StartSetting(); |
- if (!pObj->DoProperty(pRuntimeContext, propname.c_str(), PropValue, sError)) { |
+ if (!pObj->DoProperty(pContext, propname.c_str(), PropValue, sError)) { |
FXJS_Error(isolate, JSFormatErrorString(class_name, "PutProperty", sError)); |
} |
} |
@@ -420,7 +420,7 @@ void JSSpecialPropDel(const char* class_name, |
IJS_Runtime* pRuntime = FXJS_GetRuntimeFromIsolate(isolate); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Object* pJSObj = |
reinterpret_cast<CJS_Object*>(FXJS_GetPrivate(isolate, info.Holder())); |
Alt* pObj = reinterpret_cast<Alt*>(pJSObj->GetEmbedObject()); |
@@ -428,7 +428,7 @@ void JSSpecialPropDel(const char* class_name, |
CFX_WideString propname = |
CFX_WideString::FromUTF8(*utf8_value, utf8_value.length()); |
CFX_WideString sError; |
- if (!pObj->DelProperty(pRuntimeContext, propname.c_str(), sError)) { |
+ if (!pObj->DelProperty(pContext, propname.c_str(), sError)) { |
CFX_ByteString cbName; |
cbName.Format("%s.%s", class_name, "DelProperty"); |
// Probably a missing call to JSFX_Error(). |
@@ -445,14 +445,14 @@ void JSGlobalFunc(const char* func_name_string, |
static_cast<CJS_Runtime*>(FXJS_GetRuntimeFromIsolate(info.GetIsolate())); |
if (!pRuntime) |
return; |
- IJS_Context* pRuntimeContext = pRuntime->GetCurrentContext(); |
+ IJS_Context* pContext = pRuntime->GetCurrentContext(); |
CJS_Parameters parameters; |
for (unsigned int i = 0; i < (unsigned int)info.Length(); i++) { |
parameters.push_back(CJS_Value(pRuntime, info[i], CJS_Value::VT_unknown)); |
} |
CJS_Value valueRes(pRuntime); |
CFX_WideString sError; |
- if (!(*F)(pRuntimeContext, parameters, valueRes, sError)) { |
+ if (!(*F)(pContext, parameters, valueRes, sError)) { |
FXJS_Error(pRuntime->GetIsolate(), |
JSFormatErrorString(func_name_string, nullptr, sError)); |
return; |