summaryrefslogtreecommitdiff
path: root/xfa/fxfa/cxfa_ffpageview.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2018-01-04 16:53:15 -0500
committerChromium commit bot <commit-bot@chromium.org>2018-01-04 22:08:21 +0000
commit9aeb0caba4cda9c6bd39ed079f88000a712f9890 (patch)
treecf5801fa3e5ed9194896771ca66a8a3b80fda709 /xfa/fxfa/cxfa_ffpageview.cpp
parent0545d2a5d759dbbb6ac3cce6d82bc0f2188cc4aa (diff)
downloadpdfium-9aeb0caba4cda9c6bd39ed079f88000a712f9890.tar.xz
Remove CXFA_WidgetData::{GetElementType|GetDatasets}
The GetElementType and GetDatasets methods have been removed from the CXFA_WidgetData class and we call the CXFA_Node methods directly. Change-Id: I5178be76c929ac3405eb6a65f9b8775b2f0283e2 Reviewed-on: https://pdfium-review.googlesource.com/22264 Reviewed-by: Henrique Nakashima <hnakashima@chromium.org> Commit-Queue: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fxfa/cxfa_ffpageview.cpp')
-rw-r--r--xfa/fxfa/cxfa_ffpageview.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/xfa/fxfa/cxfa_ffpageview.cpp b/xfa/fxfa/cxfa_ffpageview.cpp
index 40eeea5d9e..9708bfc606 100644
--- a/xfa/fxfa/cxfa_ffpageview.cpp
+++ b/xfa/fxfa/cxfa_ffpageview.cpp
@@ -73,7 +73,8 @@ bool PageWidgetFilter(CXFA_FFWidget* pWidget,
CXFA_WidgetAcc* pWidgetAcc = pWidget->GetDataAcc();
if (!!(dwFilter & XFA_WidgetStatus_Focused) &&
- pWidgetAcc->GetElementType() != XFA_Element::Field) {
+ (!pWidgetAcc->GetNode() ||
+ pWidgetAcc->GetNode()->GetElementType() != XFA_Element::Field)) {
return false;
}