diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-12-04 18:08:58 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-12-04 18:08:58 +0000 |
commit | 76e336d26e78f6c6b5cdede6bb4b94ebddf3a2b1 (patch) | |
tree | 07bc69b943a29840f947e97e26d3173130e51a91 /fxjs/cjx_node.cpp | |
parent | 0ddd5dc7969676f0c661c859512be50e379a2260 (diff) | |
download | pdfium-76e336d26e78f6c6b5cdede6bb4b94ebddf3a2b1.tar.xz |
Cleanup CFXJSE engine and resolve processor
Change-Id: Ibb7411a7c90f723a19fd5d41552988bc8943e4ea
Reviewed-on: https://pdfium-review.googlesource.com/20330
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'fxjs/cjx_node.cpp')
-rw-r--r-- | fxjs/cjx_node.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/fxjs/cjx_node.cpp b/fxjs/cjx_node.cpp index 58e2cdeb7c..2865ba4fbf 100644 --- a/fxjs/cjx_node.cpp +++ b/fxjs/cjx_node.cpp @@ -1384,20 +1384,21 @@ void CJX_Node::Script_Field_Length(CFXJSE_Value* pValue, void CJX_Node::Script_Som_DefaultValue(CFXJSE_Value* pValue, bool bSetting, - XFA_Attribute eAttribute) { + XFA_Attribute /* unused */) { XFA_Element eType = GetXFANode()->GetElementType(); if (eType == XFA_Element::Field) { - Script_Field_DefaultValue(pValue, bSetting, eAttribute); + Script_Field_DefaultValue(pValue, bSetting, XFA_Attribute::Unknown); return; } if (eType == XFA_Element::Draw) { - Script_Draw_DefaultValue(pValue, bSetting, eAttribute); + Script_Draw_DefaultValue(pValue, bSetting, XFA_Attribute::Unknown); return; } if (eType == XFA_Element::Boolean) { - Script_Boolean_Value(pValue, bSetting, eAttribute); + Script_Boolean_Value(pValue, bSetting, XFA_Attribute::Unknown); return; } + if (bSetting) { WideString wsNewValue; if (pValue && !(pValue->IsNull() || pValue->IsUndefined())) |