diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-05-25 16:12:59 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-05-25 16:12:59 +0000 |
commit | 4ba76201df61467928bba429ea1d8115e292072e (patch) | |
tree | 3c440b2d0eb09b7a4d3193033bcc96f0a7e20b9d /xfa/fxfa/parser/xfa_utils.cpp | |
parent | a2bb072a69b29695242a81e4b75c19c14c39acfb (diff) | |
download | pdfium-4ba76201df61467928bba429ea1d8115e292072e.tar.xz |
[xfa] Add missing xfa.event.cancelAction property
This CL adds the missing cancleAction property from the xfa.event
object.
Bug: 1066
Change-Id: I7d38956e2985c1f6ac0eba6de090874f1f72003c
Reviewed-on: https://pdfium-review.googlesource.com/32950
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'xfa/fxfa/parser/xfa_utils.cpp')
-rw-r--r-- | xfa/fxfa/parser/xfa_utils.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xfa/fxfa/parser/xfa_utils.cpp b/xfa/fxfa/parser/xfa_utils.cpp index de0f76b6b4..9418ec8eda 100644 --- a/xfa/fxfa/parser/xfa_utils.cpp +++ b/xfa/fxfa/parser/xfa_utils.cpp @@ -570,6 +570,7 @@ const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( if (wsAttributeName.IsEmpty()) return nullptr; + uint32_t uHash = FX_HashCode_GetW(wsAttributeName, false); int32_t iElementIndex = static_cast<int32_t>(eElement); while (iElementIndex != -1) { const XFA_SCRIPTHIERARCHY* scriptIndex = g_XFAScriptIndex + iElementIndex; @@ -579,7 +580,6 @@ const XFA_SCRIPTATTRIBUTEINFO* XFA_GetScriptAttributeByName( continue; } - uint32_t uHash = FX_HashCode_GetW(wsAttributeName, false); size_t iStart = scriptIndex->wAttributeStart; size_t iEnd = iStart + iCount; for (size_t iter = iStart; iter < iEnd; ++iter) { |