Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(584)

Unified Diff: xfa/fwl/cfwl_form.cpp

Issue 2573133002: Remove unused widget state flags (Closed)
Patch Set: Rebase to master Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « xfa/fwl/cfwl_edit.cpp ('k') | xfa/fwl/cfwl_themepart.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: xfa/fwl/cfwl_form.cpp
diff --git a/xfa/fwl/cfwl_form.cpp b/xfa/fwl/cfwl_form.cpp
index 75ddf43702171ad9a4b874dd7d5aeb87ae1d6886..dcb25556514cfd10ed09bea5cda74c7de1d524f8 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);
}
}
« no previous file with comments | « xfa/fwl/cfwl_edit.cpp ('k') | xfa/fwl/cfwl_themepart.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698