summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_combobox.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2016-11-23 13:04:07 -0500
committerDan Sinclair <dsinclair@chromium.org>2016-11-23 13:04:07 -0500
commit7172b71a005c181e9f103ac0e19f6675bf3bc8e8 (patch)
tree433b3e8294fb1c45d7407b67030c5230ffb893c7 /xfa/fwl/core/ifwl_combobox.cpp
parent0ced827f257344a1f5804aa96df538f3e783bd10 (diff)
downloadpdfium-7172b71a005c181e9f103ac0e19f6675bf3bc8e8.tar.xz
Remove IFWL_CombobBox::DataProvider
The height value returned is always 0. This CL removes the plumbing and uses the 0 value directly. R=npm@chromium.org, tsepez@chromium.org Review URL: https://codereview.chromium.org/2525003002 .
Diffstat (limited to 'xfa/fwl/core/ifwl_combobox.cpp')
-rw-r--r--xfa/fwl/core/ifwl_combobox.cpp14
1 files changed, 1 insertions, 13 deletions
diff --git a/xfa/fwl/core/ifwl_combobox.cpp b/xfa/fwl/core/ifwl_combobox.cpp
index 906fe1d6ef..19d1c3f87f 100644
--- a/xfa/fwl/core/ifwl_combobox.cpp
+++ b/xfa/fwl/core/ifwl_combobox.cpp
@@ -337,12 +337,6 @@ void IFWL_ComboBox::EditModifyStylesEx(uint32_t dwStylesExAdded,
m_pEdit->ModifyStylesEx(dwStylesExAdded, dwStylesExRemoved);
}
-FX_FLOAT IFWL_ComboBox::GetDataProviderListHeight() {
- return static_cast<IFWL_ComboBox::DataProvider*>(
- m_pProperties->m_pDataProvider)
- ->GetListHeight(this);
-}
-
void IFWL_ComboBox::DrawStretchHandler(CFX_Graphics* pGraphics,
const CFX_Matrix* pMatrix) {
CFWL_ThemeBackground param;
@@ -381,11 +375,6 @@ void IFWL_ComboBox::ShowDropList(bool bActivate) {
(FWL_STYLEEXT_CMB_Sort | FWL_STYLEEXT_CMB_OwnerDraw);
m_pListBox->ModifyStylesEx(dwStyleAdd, 0);
m_pListBox->GetWidgetRect(m_rtList, true);
- FX_FLOAT fHeight = GetDataProviderListHeight();
- if (fHeight > 0 && m_rtList.height > fHeight) {
- m_rtList.height = fHeight;
- m_pListBox->ModifyStyles(FWL_WGTSTYLE_VScroll, 0);
- }
CFX_RectF rtAnchor;
rtAnchor.Set(0, 0, m_pProperties->m_rtWidget.width,
@@ -396,8 +385,7 @@ void IFWL_ComboBox::ShowDropList(bool bActivate) {
if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CMB_ListDrag)
m_rtProxy.height += m_fComboFormHandler;
- FX_FLOAT fMinHeight = 0;
- GetPopupPos(fMinHeight, m_rtProxy.height, rtAnchor, m_rtProxy);
+ GetPopupPos(0, m_rtProxy.height, rtAnchor, m_rtProxy);
if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_CMB_ListDrag) {
FX_FLOAT fx = 0;
FX_FLOAT fy = m_rtClient.top + m_rtClient.height / 2;