summaryrefslogtreecommitdiff
path: root/fxjs/xfa/cjx_node.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-12-12 18:25:18 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-12-12 18:25:18 +0000
commit3c78c03813f040640a15efe6d1646d21cb73b773 (patch)
tree64bf1bc7791f4416b17627e534b027dd9e2df62b /fxjs/xfa/cjx_node.cpp
parentf7aa204aafe97505b98f38a7b52a74f5e2a59a8e (diff)
downloadpdfium-3c78c03813f040640a15efe6d1646d21cb73b773.tar.xz
Move Script_Attribute_BOOL to CJX_Object
The CJX_Node isn't the root of the CJX hierarchy. This causes issues now that CJX_Object has child objects which don't inherit from CJX_Node. This CL moves Script_Attribute_BOOL from CJX_Node to CJX_Object. Change-Id: I0e5509f49c77897cb17a01fb9fa3abf0cb6074ae Reviewed-on: https://pdfium-review.googlesource.com/20970 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/xfa/cjx_node.cpp')
-rw-r--r--fxjs/xfa/cjx_node.cpp10
1 files changed, 0 insertions, 10 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) {