diff options
author | Tom Sepez <tsepez@chromium.org> | 2018-07-03 17:26:34 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-07-03 17:26:34 +0000 |
commit | 2c537bf828eacdf90c3e3b45efc61c579a744629 (patch) | |
tree | 388618a514af0a5ed3ba96549c820851ea36607c /xfa/fwl/cfwl_combolist.cpp | |
parent | 931a6b9c253f161f8016064eee601cd238ed246f (diff) | |
download | pdfium-2c537bf828eacdf90c3e3b45efc61c579a744629.tar.xz |
Use UnownedPtr<> in cfwl_messagekillfocus.h
Also make private member along the way.
Change-Id: I08a006a1bcca4e8ca21834dfda695a2d77d0a431
Reviewed-on: https://pdfium-review.googlesource.com/36930
Commit-Queue: Tom Sepez <tsepez@chromium.org>
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: dsinclair <dsinclair@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_combolist.cpp')
-rw-r--r-- | xfa/fwl/cfwl_combolist.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/cfwl_combolist.cpp b/xfa/fwl/cfwl_combolist.cpp index 004fbb46b9..5aae3cddd4 100644 --- a/xfa/fwl/cfwl_combolist.cpp +++ b/xfa/fwl/cfwl_combolist.cpp @@ -122,8 +122,8 @@ void CFWL_ComboList::OnDropListFocusChanged(CFWL_Message* pMsg, bool bSet) { CFWL_MessageKillFocus* pKill = static_cast<CFWL_MessageKillFocus*>(pMsg); CFWL_ComboBox* pOuter = static_cast<CFWL_ComboBox*>(m_pOuter); - if (pKill->m_pSetFocus == m_pOuter || - pKill->m_pSetFocus == pOuter->GetComboEdit()) { + if (pKill->IsFocusedOnWidget(m_pOuter) || + pKill->IsFocusedOnWidget(pOuter->GetComboEdit())) { pOuter->ShowDropList(false); } } |