diff options
author | dsinclair <dsinclair@chromium.org> | 2016-05-04 14:11:13 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-04 14:11:13 -0700 |
commit | b7675f63684ebff68c688a1c7b160596b6747c3e (patch) | |
tree | b677ff8fd5eb74ad27ffefb97681ffe92e1bb89b /xfa/fwl/theme/cfwl_formtp.cpp | |
parent | ef43608928148bac9b73f6919188efd87feccf95 (diff) | |
download | pdfium-b7675f63684ebff68c688a1c7b160596b6747c3e.tar.xz |
Cleanup CFWL_ThemePart data.
The m_dwData pointer was being used as a generic way to pass around data. There
were only two places we were reading that data. This Cl changes to have two
specific flags and removes the generic pointer.
Review-Url: https://codereview.chromium.org/1950973003
Diffstat (limited to 'xfa/fwl/theme/cfwl_formtp.cpp')
-rw-r--r-- | xfa/fwl/theme/cfwl_formtp.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xfa/fwl/theme/cfwl_formtp.cpp b/xfa/fwl/theme/cfwl_formtp.cpp index 65d070b6b7..6fd3453e69 100644 --- a/xfa/fwl/theme/cfwl_formtp.cpp +++ b/xfa/fwl/theme/cfwl_formtp.cpp @@ -137,7 +137,7 @@ FX_BOOL CFWL_FormTP::DrawBackground(CFWL_ThemeBackground* pParams) { } case CFWL_Part::MaximizeBox: { DrawMaximizeBox(pParams->m_pGraphics, &pParams->m_rtPart, eState, - pParams->m_dwData, &pParams->m_matrix, iActive); + pParams->m_bMaximize, &pParams->m_matrix, iActive); break; } case CFWL_Part::Icon: { @@ -515,7 +515,7 @@ void CFWL_FormTP::DrawMinimizeBox(CFX_Graphics* pGraphics, void CFWL_FormTP::DrawMaximizeBox(CFX_Graphics* pGraphics, const CFX_RectF* pRect, FWLTHEME_STATE eState, - FX_BOOL bMax, + bool bMax, CFX_Matrix* pMatrix, int32_t iActive) { DrawMinMaxBoxCommon(pGraphics, pRect, eState, pMatrix); |