Lines Matching refs:pObject
173 void CFXJSE_Engine::GlobalPropertySetter(CFXJSE_Value* pObject, in GlobalPropertySetter() argument
176 CXFA_Object* lpOrginalNode = ToObject(pObject, nullptr); in GlobalPropertySetter()
194 pObject->SetObjectOwnProperty(szPropName, pValue); in GlobalPropertySetter()
206 void CFXJSE_Engine::GlobalPropertyGetter(CFXJSE_Value* pObject, in GlobalPropertyGetter() argument
209 CXFA_Object* pOriginalObject = ToObject(pObject, nullptr); in GlobalPropertyGetter()
266 CXFA_Object* pObject = ToObject(pOriginalValue, nullptr); in GlobalPropTypeGetter() local
267 if (!pObject) in GlobalPropTypeGetter()
270 CFXJSE_Engine* lpScriptContext = pObject->GetDocument()->GetScriptContext(); in GlobalPropTypeGetter()
271 pObject = lpScriptContext->GetVariablesThis(pObject); in GlobalPropTypeGetter()
273 if (pObject->JSObject()->HasMethod(wsPropName)) in GlobalPropTypeGetter()
291 CXFA_Object* pObject = lpScriptContext->GetVariablesThis(pOriginalObject); in NormalPropertyGetter() local
300 ToNode(pObject), wsPropName.AsStringView(), pReturnValue, in NormalPropertyGetter()
307 if (pObject == lpScriptContext->GetThisObject() || in NormalPropertyGetter()
311 ToNode(pObject), wsPropName.AsStringView(), pReturnValue, in NormalPropertyGetter()
336 CXFA_Object* pObject = lpScriptContext->GetVariablesThis(pOriginalObject); in NormalPropertySetter() local
339 pObject->GetElementType(), wsPropName.AsStringView()); in NormalPropertySetter()
341 CJX_Object* jsObject = pObject->JSObject(); in NormalPropertySetter()
347 if (pObject->IsNode()) { in NormalPropertySetter()
351 CXFA_Node* pNode = ToNode(pObject); in NormalPropertySetter()
383 CXFA_Object* pObject = ToObject(pOriginalValue, nullptr); in NormalPropTypeGetter() local
384 if (!pObject) in NormalPropTypeGetter()
387 CFXJSE_Engine* lpScriptContext = pObject->GetDocument()->GetScriptContext(); in NormalPropTypeGetter()
388 pObject = lpScriptContext->GetVariablesThis(pObject); in NormalPropTypeGetter()
389 XFA_Element eType = pObject->GetElementType(); in NormalPropTypeGetter()
391 if (pObject->JSObject()->HasMethod(wsPropName)) in NormalPropTypeGetter()
404 CXFA_Object* pObject = ToObject(info); in NormalMethodCall() local
405 if (!pObject) in NormalMethodCall()
408 CFXJSE_Engine* lpScriptContext = pObject->GetDocument()->GetScriptContext(); in NormalMethodCall()
409 pObject = lpScriptContext->GetVariablesThis(pObject); in NormalMethodCall()
415 return pObject->JSObject()->RunMethod(functionName, parameters); in NormalMethodCall()
441 CXFA_Object* CFXJSE_Engine::GetVariablesThis(CXFA_Object* pObject, in GetVariablesThis() argument
443 if (!pObject->IsVariablesThis()) in GetVariablesThis()
444 return pObject; in GetVariablesThis()
446 CXFA_ThisProxy* pProxy = static_cast<CXFA_ThisProxy*>(pObject); in GetVariablesThis()
501 std::unique_ptr<CFXJSE_Value> pObject = pVariableContext->GetGlobalObject(); in QueryVariableValue() local
504 pObject->SetObjectOwnProperty(szPropName, pValue); in QueryVariableValue()
507 if (pObject->HasObjectOwnProperty(szPropName, false)) { in QueryVariableValue()
508 pObject->GetObjectProperty(szPropName, hVariableValue.get()); in QueryVariableValue()
510 pValue->SetFunctionBind(hVariableValue.get(), pObject.get()); in QueryVariableValue()
522 std::unique_ptr<CFXJSE_Value> pObject = pContext->GetGlobalObject(); in RemoveBuiltInObjs() local
525 if (pObject->GetObjectProperty(OBJ_NAME[i], hProp.get())) in RemoveBuiltInObjs()
526 pObject->DeleteObjectProperty(OBJ_NAME[i]); in RemoveBuiltInObjs()
713 CFXJSE_Value* CFXJSE_Engine::GetJSValueFromMap(CXFA_Object* pObject) { in GetJSValueFromMap() argument
714 if (!pObject) in GetJSValueFromMap()
716 if (pObject->IsNode()) in GetJSValueFromMap()
717 RunVariablesScript(pObject->AsNode()); in GetJSValueFromMap()
719 auto iter = m_mapObjectToValue.find(pObject); in GetJSValueFromMap()
724 jsValue->SetObject(pObject, m_pJsClass); in GetJSValueFromMap()
727 m_mapObjectToValue.insert(std::make_pair(pObject, std::move(jsValue))); in GetJSValueFromMap()