From 5471335c2a70776b6734a4ee5a6732ee373c2236 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Thu, 2 Nov 2017 20:24:08 +0000 Subject: Fix visibility of some CJX_Node methods This CL fixes the visibility of several CJX_Node methods by making them private. The corresponding methods in CXFA_Node were removed as they aren't called. The OnChanged and OnChanging methods are moved to CJX_Node as they make more sense on the JS object. Change-Id: I2f791915508ec7732647de0db700c06edc4e011d Reviewed-on: https://pdfium-review.googlesource.com/17611 Commit-Queue: dsinclair Reviewed-by: Tom Sepez --- xfa/fxfa/parser/cxfa_node.cpp | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'xfa/fxfa/parser/cxfa_node.cpp') diff --git a/xfa/fxfa/parser/cxfa_node.cpp b/xfa/fxfa/parser/cxfa_node.cpp index b2677573f5..e4fae59a4b 100644 --- a/xfa/fxfa/parser/cxfa_node.cpp +++ b/xfa/fxfa/parser/cxfa_node.cpp @@ -645,13 +645,6 @@ void CXFA_Node::Script_TreeClass_ResolveNodes(CFXJSE_Arguments* pArguments) { JSNode()->Script_TreeClass_ResolveNodes(pArguments); } -void CXFA_Node::Script_Som_ResolveNodeList(CFXJSE_Value* pValue, - WideString wsExpression, - uint32_t dwFlag, - CXFA_Node* refNode) { - JSNode()->Script_Som_ResolveNodeList(pValue, wsExpression, dwFlag, refNode); -} - void CXFA_Node::Script_TreeClass_All(CFXJSE_Value* pValue, bool bSetting, XFA_ATTRIBUTE eAttribute) { @@ -825,13 +818,6 @@ void CXFA_Node::Script_Attribute_BOOLRead(CFXJSE_Value* pValue, JSNode()->Script_Attribute_BOOLRead(pValue, bSetting, eAttribute); } -void CXFA_Node::Script_Attribute_SendAttributeChangeMessage( - XFA_ATTRIBUTE eAttribute, - bool bScriptModify) { - JSNode()->Script_Attribute_SendAttributeChangeMessage(eAttribute, - bScriptModify); -} - void CXFA_Node::Script_Attribute_String(CFXJSE_Value* pValue, bool bSetting, XFA_ATTRIBUTE eAttribute) { @@ -1738,23 +1724,6 @@ void CXFA_Node::OnRemoved(bool bNotify) { pNotify->OnChildRemoved(); } -void CXFA_Node::OnChanging(XFA_ATTRIBUTE eAttr, bool bNotify) { - if (bNotify && IsInitialized()) { - CXFA_FFNotify* pNotify = m_pDocument->GetNotify(); - if (pNotify) { - pNotify->OnValueChanging(this, eAttr); - } - } -} - -void CXFA_Node::OnChanged(XFA_ATTRIBUTE eAttr, - bool bNotify, - bool bScriptModify) { - if (bNotify && IsInitialized()) { - Script_Attribute_SendAttributeChangeMessage(eAttr, bScriptModify); - } -} - void CXFA_Node::UpdateNameHash() { const XFA_NOTSUREATTRIBUTE* pNotsure = XFA_GetNotsureAttribute(GetElementType(), XFA_ATTRIBUTE_Name); -- cgit v1.2.3