diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2018-01-22 22:08:57 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-22 22:08:57 +0000 |
commit | 7f2d01a2dc223aca5522efaeed0eba9fc145fc51 (patch) | |
tree | f643e741b145ce7e67a391cc8a40696a6a9298f8 /fpdfsdk | |
parent | 1ca42167e5913eddf57f137fd7b4cc2110b6cd1f (diff) | |
download | pdfium-7f2d01a2dc223aca5522efaeed0eba9fc145fc51.tar.xz |
Convert CXFA_EventParam to store a CXFA_Node
This CL changes the CXFA_EventParam code to store a CXFA_Node instead of
a CXFA_WidgetAcc.
Change-Id: I21510674b0b6435ca9b87bfbf97914f54e5e3464
Reviewed-on: https://pdfium-review.googlesource.com/23451
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/cpdfsdk_widget.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fpdfsdk/cpdfsdk_widget.cpp b/fpdfsdk/cpdfsdk_widget.cpp index ffb4dde286..eb02f7c743 100644 --- a/fpdfsdk/cpdfsdk_widget.cpp +++ b/fpdfsdk/cpdfsdk_widget.cpp @@ -263,7 +263,7 @@ bool CPDFSDK_Widget::OnXFAAAction(PDFSDK_XFAAActionType eXFAAAT, if (!node->IsWidgetReady()) return false; - param.m_pTarget = node->GetWidgetAcc(); + param.m_pTarget = node; if (pXFAWidgetHandler->ProcessEvent(node, ¶m) != XFA_EVENTERROR_Success) { return false; @@ -274,7 +274,7 @@ bool CPDFSDK_Widget::OnXFAAAction(PDFSDK_XFAAActionType eXFAAAT, int32_t nRet = XFA_EVENTERROR_NotExist; CXFA_Node* node = hWidget->GetNode(); if (node->IsWidgetReady()) { - param.m_pTarget = node->GetWidgetAcc(); + param.m_pTarget = node; nRet = pXFAWidgetHandler->ProcessEvent(node, ¶m); } if (CXFA_FFDocView* pDocView = pContext->GetXFADocView()) @@ -1016,7 +1016,7 @@ bool CPDFSDK_Widget::OnAAction(CPDF_AAction::AActionType type, int32_t nRet = XFA_EVENTERROR_NotExist; CXFA_Node* node = hWidget->GetNode(); if (node->IsWidgetReady()) { - param.m_pTarget = node->GetWidgetAcc(); + param.m_pTarget = node; nRet = pXFAWidgetHandler->ProcessEvent(node, ¶m); } |