summaryrefslogtreecommitdiff
path: root/xfa/fxfa/app/xfa_fwltheme.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-21 11:15:32 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-21 11:15:32 -0800
commit0ed26b29690bf65055ee40e611bb3f58c428d4f8 (patch)
tree03c4f6f157e3f79e47326efe412218fa1ac7e6cf /xfa/fxfa/app/xfa_fwltheme.cpp
parent85c8e7f788512ce5b5b43cd816e8091b57c3d5e7 (diff)
downloadpdfium-0ed26b29690bf65055ee40e611bb3f58c428d4f8.tar.xz
Remove theme id from themeproviders
The theme ID is never set, so it's always 0. This CL removes the Set/Get methods and updates the code to use 0 in place of m_dwThemeId. Review-Url: https://codereview.chromium.org/2519113002
Diffstat (limited to 'xfa/fxfa/app/xfa_fwltheme.cpp')
-rw-r--r--xfa/fxfa/app/xfa_fwltheme.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/xfa/fxfa/app/xfa_fwltheme.cpp b/xfa/fxfa/app/xfa_fwltheme.cpp
index 9042ef92cd..01799496d8 100644
--- a/xfa/fxfa/app/xfa_fwltheme.cpp
+++ b/xfa/fxfa/app/xfa_fwltheme.cpp
@@ -108,13 +108,9 @@ void CXFA_FWLTheme::DrawText(CFWL_ThemeText* pParams) {
(CFWL_PartState_Hovered | CFWL_PartState_Selected))) {
m_pTextOut->SetTextColor(0xFFFFFFFF);
}
- if (pParams->m_iPart == CFWL_Part::Caption) {
- if (m_pMonthCalendarTP->GetThemeID(pParams->m_pWidget) == 0) {
- m_pTextOut->SetTextColor(ArgbEncode(0xff, 0, 153, 255));
- } else {
- m_pTextOut->SetTextColor(ArgbEncode(0xff, 128, 128, 0));
- }
- }
+ if (pParams->m_iPart == CFWL_Part::Caption)
+ m_pTextOut->SetTextColor(ArgbEncode(0xff, 0, 153, 255));
+
CFX_Graphics* pGraphics = pParams->m_pGraphics;
CFX_RenderDevice* pRenderDevice = pGraphics->GetRenderDevice();
if (!pRenderDevice)