diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-08 17:11:21 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-08 17:11:21 +0000 |
commit | 269ef77ccbb20db68c0b5049bb6a3a867623db64 (patch) | |
tree | 4e1437072ce86d4973d6d42e92a3c44b64016455 /xfa/fxfa/parser/xfa_resolvenode_rs.h | |
parent | 20f22a0a38a6c6d9ccd0ead2e65093e79f0bd051 (diff) | |
download | pdfium-269ef77ccbb20db68c0b5049bb6a3a867623db64.tar.xz |
Fix XFA_SCRIPTATTRIBUTEINFO attribute type
This CL changes XFA_SCRIPTATTRIBUTEINFO attribute field to be a
XFA_ATTRIBUTE from an in32_t. This necessitated adding an
XFA_ATTRIBUTE_Unknown and updating the various -1 values in the script
data description.
Change-Id: I837602e38b3785d7c8515830fae8dc427d449e9f
Reviewed-on: https://pdfium-review.googlesource.com/18030
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_resolvenode_rs.h')
-rw-r--r-- | xfa/fxfa/parser/xfa_resolvenode_rs.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xfa/fxfa/parser/xfa_resolvenode_rs.h b/xfa/fxfa/parser/xfa_resolvenode_rs.h index 750adab36f..e77df4589c 100644 --- a/xfa/fxfa/parser/xfa_resolvenode_rs.h +++ b/xfa/fxfa/parser/xfa_resolvenode_rs.h @@ -52,9 +52,8 @@ struct XFA_RESOLVENODE_RS { for (CXFA_Object* pObject : objects) { auto pValue = pdfium::MakeUnique<CFXJSE_Value>(valueArray->m_pIsolate); CJX_Object* jsObject = pObject->JSObject(); - (jsObject->*(pScriptAttribute->callback))( - pValue.get(), false, - static_cast<XFA_ATTRIBUTE>(pScriptAttribute->eAttribute)); + (jsObject->*(pScriptAttribute->callback))(pValue.get(), false, + pScriptAttribute->attribute); valueArray->m_Values.push_back(std::move(pValue)); } } |