diff options
author | dsinclair <dsinclair@chromium.org> | 2016-10-17 18:14:25 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-10-17 18:14:25 -0700 |
commit | 878dd5b121b38e6eaba5b3f3a90d0a9abf60feaf (patch) | |
tree | 6b490d5e54c0d2e213d18b5e4bfe106f61eb1390 /xfa/fwl/basewidget/fwl_comboboximp.cpp | |
parent | 8021a646f18d76518be32c36907a04f213a0e21c (diff) | |
download | pdfium-878dd5b121b38e6eaba5b3f3a90d0a9abf60feaf.tar.xz |
Cleanup unneeded FWL theme code.
This CL removes FWL theme code methods which do not have implementations.
Review-Url: https://codereview.chromium.org/2422373002
Diffstat (limited to 'xfa/fwl/basewidget/fwl_comboboximp.cpp')
-rw-r--r-- | xfa/fwl/basewidget/fwl_comboboximp.cpp | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/xfa/fwl/basewidget/fwl_comboboximp.cpp b/xfa/fwl/basewidget/fwl_comboboximp.cpp index ded0da51f5..17c5bf80d4 100644 --- a/xfa/fwl/basewidget/fwl_comboboximp.cpp +++ b/xfa/fwl/basewidget/fwl_comboboximp.cpp @@ -695,12 +695,10 @@ FWL_Error CFWL_ComboBoxImp::SetThemeProvider( if (!pThemeProvider) return FWL_Error::Indefinite; m_pProperties->m_pThemeProvider = pThemeProvider; - if (m_pListBox && pThemeProvider->IsValidWidget(m_pListBox.get())) { + if (m_pListBox) m_pListBox->SetThemeProvider(pThemeProvider); - } - if (m_pEdit && pThemeProvider->IsValidWidget(m_pEdit.get())) { + if (m_pEdit) m_pEdit->SetThemeProvider(pThemeProvider); - } return FWL_Error::Succeeded; } int32_t CFWL_ComboBoxImp::GetCurSel() { @@ -1042,17 +1040,10 @@ void CFWL_ComboBoxImp::ReSetTheme() { pTheme = GetAvailableTheme(); m_pProperties->m_pThemeProvider = pTheme; } - if (m_pListBox) { - if (!m_pListBox->GetThemeProvider() && - pTheme->IsValidWidget(m_pListBox.get())) { - m_pListBox->SetThemeProvider(pTheme); - } - } - if (m_pEdit) { - if (!m_pEdit->GetThemeProvider() && pTheme->IsValidWidget(m_pEdit.get())) { - m_pEdit->SetThemeProvider(pTheme); - } - } + if (m_pListBox && !m_pListBox->GetThemeProvider()) + m_pListBox->SetThemeProvider(pTheme); + if (m_pEdit && !m_pEdit->GetThemeProvider()) + m_pEdit->SetThemeProvider(pTheme); } void CFWL_ComboBoxImp::ReSetEditAlignment() { if (!m_pEdit) |