From ac9934bfd0570526fb5b688670f32efa56648f5d Mon Sep 17 00:00:00 2001 From: dsinclair Date: Mon, 21 Nov 2016 11:37:36 -0800 Subject: 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 --- xfa/fwl/theme/cfwl_listboxtp.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'xfa/fwl/theme/cfwl_listboxtp.cpp') diff --git a/xfa/fwl/theme/cfwl_listboxtp.cpp b/xfa/fwl/theme/cfwl_listboxtp.cpp index 3731097f24..9851349f71 100644 --- a/xfa/fwl/theme/cfwl_listboxtp.cpp +++ b/xfa/fwl/theme/cfwl_listboxtp.cpp @@ -85,9 +85,7 @@ void CFWL_ListBoxTP::DrawListBoxItem(CFX_Graphics* pGraphics, CFX_Matrix* pMatrix) { if (dwStates & CFWL_PartState_Selected) { pGraphics->SaveGraphState(); - CFX_Color crFill(FWL_GetThemeColor(0) == 0 - ? FWLTHEME_COLOR_BKSelected - : FWLTHEME_COLOR_Green_BKSelected); + CFX_Color crFill(FWLTHEME_COLOR_BKSelected); pGraphics->SetFillColor(&crFill); CFX_RectF rt(*prtItem); CFX_Path path; -- cgit v1.2.3