From 8f3074bef53ed941daef3f32981b1449db7bcc26 Mon Sep 17 00:00:00 2001 From: dsinclair Date: Thu, 2 Jun 2016 17:45:25 -0700 Subject: Remove FXJSE_Value_ToObject and call methods directly This Cl removes the global FXJSE_Value_ToObject method and adds individual methods on CXFA_Value to do the needed conversions. Review-Url: https://codereview.chromium.org/2026993003 --- xfa/fxfa/parser/xfa_script_imp.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'xfa/fxfa/parser/xfa_script_imp.h') diff --git a/xfa/fxfa/parser/xfa_script_imp.h b/xfa/fxfa/parser/xfa_script_imp.h index 91f5f0ab80..86d3f3703a 100644 --- a/xfa/fxfa/parser/xfa_script_imp.h +++ b/xfa/fxfa/parser/xfa_script_imp.h @@ -93,6 +93,8 @@ class CXFA_ScriptContext { CXFA_NodeArray& GetUpObjectArray() { return m_upObjectArray; } CXFA_Document* GetDocument() const { return m_pDocument; } + static CXFA_Object* ToObject(CFXJSE_Value* pValue, CFXJSE_Class* pClass); + private: void DefineJsContext(); CFXJSE_Context* CreateVariablesContext(CXFA_Node* pScriptNode, -- cgit v1.2.3