summaryrefslogtreecommitdiff
path: root/xfa/fwl/cfwl_form.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_form.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_form.cpp')
-rw-r--r--xfa/fwl/cfwl_form.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/xfa/fwl/cfwl_form.cpp b/xfa/fwl/cfwl_form.cpp
index 75ddf43702..dcb2555651 100644
--- a/xfa/fwl/cfwl_form.cpp
+++ b/xfa/fwl/cfwl_form.cpp
@@ -83,8 +83,6 @@ void CFWL_Form::DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) {
return;
IFWL_ThemeProvider* pTheme = m_pProperties->m_pThemeProvider;
- bool bInactive = !IsActive();
- int32_t iState = bInactive ? CFWL_PartState_Inactive : CFWL_PartState_Normal;
DrawBackground(pGraphics, pTheme);
#ifdef FWL_UseMacSystemBorder
@@ -92,7 +90,7 @@ void CFWL_Form::DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) {
#endif
CFWL_ThemeBackground param;
param.m_pWidget = this;
- param.m_dwStates = iState;
+ param.m_dwStates = CFWL_PartState_Normal;
param.m_pGraphics = pGraphics;
param.m_rtPart = m_rtRelative;
if (pMatrix)
@@ -105,7 +103,7 @@ void CFWL_Form::DrawWidget(CFX_Graphics* pGraphics, const CFX_Matrix* pMatrix) {
FWL_WGTSTYLE_EdgeNone) {
param.m_iPart = CFWL_Part::Edge;
param.m_rtPart = GetEdgeRect();
- param.m_dwStates = iState;
+ param.m_dwStates = CFWL_PartState_Normal;
pTheme->DrawBackground(&param);
}
}