summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_edit.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-12-15 13:42:52 -0800
committerCommit bot <commit-bot@chromium.org>2016-12-15 13:42:52 -0800
commit791a0ccd25474d9306ad0df425575869caec3048 (patch)
tree9a52d845cb6876cad2bd14d7644ccf2dc4096d2c /xfa/fwl/cfwl_edit.cpp
parentea7657c883f3bcf9136c00b46450ca4053bee766 (diff)
downloadpdfium-791a0ccd25474d9306ad0df425575869caec3048.tar.xz
Remove unused widget state flags
These widget state flags are not set and mostly unused. Removed. Review-Url: https://codereview.chromium.org/2573133002
Diffstat (limited to 'xfa/fwl/cfwl_edit.cpp')
-rw-r--r--xfa/fwl/cfwl_edit.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/xfa/fwl/cfwl_edit.cpp b/xfa/fwl/cfwl_edit.cpp
index 5cd0c90ac8..f51249eaca 100644
--- a/xfa/fwl/cfwl_edit.cpp
+++ b/xfa/fwl/cfwl_edit.cpp
@@ -538,14 +538,6 @@ void CFWL_Edit::DrawContent(CFX_Graphics* pGraphics,
}
bool bShowSel = !!(m_pProperties->m_dwStates & FWL_WGTSTATE_Focused);
- if (bShowSel) {
- CFWL_Widget* pForm = m_pWidgetMgr->GetSystemFormWidget(this);
- if (pForm) {
- bShowSel = (pForm->GetStates() & FWL_WGTSTATE_Deactivated) !=
- FWL_WGTSTATE_Deactivated;
- }
- }
-
int32_t nSelCount = m_EdtEngine.CountSelRanges();
if (bShowSel && nSelCount > 0) {
int32_t nPageCharStart = pPage->GetCharStart();