summaryrefslogtreecommitdiff
path: root/xfa/fwl/theme/cfwl_edittp.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-21 11:37:36 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 11:37:36 -0800
commitac9934bfd0570526fb5b688670f32efa56648f5d (patch)
tree6b01e2b2557ee7344ac2144c4285a487e1fbda81 /xfa/fwl/theme/cfwl_edittp.cpp
parent738be2b591adf9acb6ab08e741e75842a4213e10 (diff)
downloadpdfium-ac9934bfd0570526fb5b688670f32efa56648f5d.tar.xz
Remove FWL_GetThemeColor
The FWL_GetThemeColor method is always called with 0 which will return 0. This CL removes the calls and replaces the callsites with 0 as needed. Review-Url: https://codereview.chromium.org/2523453002
Diffstat (limited to 'xfa/fwl/theme/cfwl_edittp.cpp')
-rw-r--r--xfa/fwl/theme/cfwl_edittp.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/xfa/fwl/theme/cfwl_edittp.cpp b/xfa/fwl/theme/cfwl_edittp.cpp
index a83b1b4bdf..2c09f398f3 100644
--- a/xfa/fwl/theme/cfwl_edittp.cpp
+++ b/xfa/fwl/theme/cfwl_edittp.cpp
@@ -54,9 +54,7 @@ void CFWL_EditTP::DrawBackground(CFWL_ThemeBackground* pParams) {
if (pParams->m_pPath) {
CFX_Graphics* pGraphics = pParams->m_pGraphics;
pGraphics->SaveGraphState();
- CFX_Color crSelected(FWL_GetThemeColor(0) == 0
- ? FWLTHEME_COLOR_BKSelected
- : FWLTHEME_COLOR_Green_BKSelected);
+ CFX_Color crSelected(FWLTHEME_COLOR_BKSelected);
pGraphics->SetFillColor(&crSelected);
pGraphics->FillPath(pParams->m_pPath, FXFILL_WINDING,
&pParams->m_matrix);