diff options
Diffstat (limited to 'fxjs/xfa')
-rw-r--r-- | fxjs/xfa/cjx_node.cpp | 10 | ||||
-rw-r--r-- | fxjs/xfa/cjx_node.h | 3 | ||||
-rw-r--r-- | fxjs/xfa/cjx_object.cpp | 10 | ||||
-rw-r--r-- | fxjs/xfa/cjx_object.h | 3 |
4 files changed, 13 insertions, 13 deletions
diff --git a/fxjs/xfa/cjx_node.cpp b/fxjs/xfa/cjx_node.cpp index 7627a3f783..1117a67ef3 100644 --- a/fxjs/xfa/cjx_node.cpp +++ b/fxjs/xfa/cjx_node.cpp @@ -615,16 +615,6 @@ void CJX_Node::Script_Attribute_IntegerRead(CFXJSE_Value* pValue, pValue->SetInteger(GetInteger(eAttribute)); } -void CJX_Node::Script_Attribute_BOOL(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute) { - if (bSetting) { - SetBoolean(eAttribute, pValue->ToBoolean(), true); - return; - } - pValue->SetString(GetBoolean(eAttribute) ? "1" : "0"); -} - void CJX_Node::Script_Attribute_BOOLRead(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute) { diff --git a/fxjs/xfa/cjx_node.h b/fxjs/xfa/cjx_node.h index f521971519..a7310c65b4 100644 --- a/fxjs/xfa/cjx_node.h +++ b/fxjs/xfa/cjx_node.h @@ -114,9 +114,6 @@ class CJX_Node : public CJX_Tree { void Script_Attribute_IntegerRead(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); - void Script_Attribute_BOOL(CFXJSE_Value* pValue, - bool bSetting, - XFA_Attribute eAttribute); void Script_Attribute_BOOLRead(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); diff --git a/fxjs/xfa/cjx_object.cpp b/fxjs/xfa/cjx_object.cpp index 566eb1cbca..10c6078f17 100644 --- a/fxjs/xfa/cjx_object.cpp +++ b/fxjs/xfa/cjx_object.cpp @@ -873,3 +873,13 @@ void CJX_Object::Script_Attribute_String(CFXJSE_Value* pValue, GetDocument()->RemovePurgeNode(pProtoForm.get()); } + +void CJX_Object::Script_Attribute_BOOL(CFXJSE_Value* pValue, + bool bSetting, + XFA_Attribute eAttribute) { + if (bSetting) { + SetBoolean(eAttribute, pValue->ToBoolean(), true); + return; + } + pValue->SetString(GetBoolean(eAttribute) ? "1" : "0"); +} diff --git a/fxjs/xfa/cjx_object.h b/fxjs/xfa/cjx_object.h index e006b390cc..c16424fa3c 100644 --- a/fxjs/xfa/cjx_object.h +++ b/fxjs/xfa/cjx_object.h @@ -78,6 +78,9 @@ class CJX_Object { void Script_Attribute_String(CFXJSE_Value* pValue, bool bSetting, XFA_Attribute eAttribute); + void Script_Attribute_BOOL(CFXJSE_Value* pValue, + bool bSetting, + XFA_Attribute eAttribute); pdfium::Optional<int32_t> TryInteger(XFA_Attribute eAttr, bool bUseDefault); bool SetInteger(XFA_Attribute eAttr, int32_t iValue, bool bNotify); |