summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_pushbutton.cpp
diff options
context:
space:
mode:
authorHenrique Nakashima <hnakashima@chromium.org>2018-05-11 20:59:06 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-05-11 20:59:06 +0000
commitd6cdd0dd2e61ecbdc652f72f84658b8502d83703 (patch)
treef0a2928f602660796b4b5b21f34b2b7fc72614de /xfa/fwl/cfwl_pushbutton.cpp
parentb222dbb346cb5b72c28fb7789613a88f64d9acb6 (diff)
downloadpdfium-d6cdd0dd2e61ecbdc652f72f84658b8502d83703.tar.xz
Remove CFWL_Widget::SetFocus(). It is non-op.
Change-Id: I707273c81d51124cf6ca7ba43cf1a817f3c852ea Reviewed-on: https://pdfium-review.googlesource.com/32412 Commit-Queue: Henrique Nakashima <hnakashima@chromium.org> Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'xfa/fwl/cfwl_pushbutton.cpp')
-rw-r--r--xfa/fwl/cfwl_pushbutton.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/xfa/fwl/cfwl_pushbutton.cpp b/xfa/fwl/cfwl_pushbutton.cpp
index a912108278..46d9876433 100644
--- a/xfa/fwl/cfwl_pushbutton.cpp
+++ b/xfa/fwl/cfwl_pushbutton.cpp
@@ -151,9 +151,6 @@ void CFWL_PushButton::OnFocusChanged(CFWL_Message* pMsg, bool bSet) {
}
void CFWL_PushButton::OnLButtonDown(CFWL_MessageMouse* pMsg) {
- if ((m_pProperties->m_dwStates & FWL_WGTSTATE_Focused) == 0)
- SetFocus(true);
-
m_bBtnDown = true;
m_pProperties->m_dwStates |= FWL_STATE_PSB_Hovered;
m_pProperties->m_dwStates |= FWL_STATE_PSB_Pressed;