diff options
author | dsinclair <dsinclair@chromium.org> | 2016-12-15 13:43:29 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-15 13:43:29 -0800 |
commit | d92477068ad0918c97a5dab799d8cfdf07ce3580 (patch) | |
tree | 207ab58fc62713e99c5810d31c3eb1afa34ecd21 /xfa/fwl/cfwl_listbox.cpp | |
parent | 791a0ccd25474d9306ad0df425575869caec3048 (diff) | |
download | pdfium-d92477068ad0918c97a5dab799d8cfdf07ce3580.tar.xz |
Remove more unused widget styles
Remove more FWL Widget Styles which are never set.
Review-Url: https://codereview.chromium.org/2578473003
Diffstat (limited to 'xfa/fwl/cfwl_listbox.cpp')
-rw-r--r-- | xfa/fwl/cfwl_listbox.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/xfa/fwl/cfwl_listbox.cpp b/xfa/fwl/cfwl_listbox.cpp index ca000f33d0..ceea0c7f8e 100644 --- a/xfa/fwl/cfwl_listbox.cpp +++ b/xfa/fwl/cfwl_listbox.cpp @@ -70,9 +70,6 @@ void CFWL_ListBox::Update() { break; } } - if (m_pProperties->m_dwStyleExes & FWL_WGTSTYLE_RTLReading) - m_dwTTOStyles |= FDE_TTOSTYLE_RTL; - m_dwTTOStyles |= FDE_TTOSTYLE_SingleLine; m_fScorllBarWidth = GetScrollWidth(); CalcSize(false); @@ -512,14 +509,11 @@ CFX_SizeF CFWL_ListBox::CalcSize(bool bAutoSize) { if (bAutoSize) return fs; - FX_FLOAT iWidth = m_rtClient.width - rtUIMargin.left - rtUIMargin.width; FX_FLOAT iHeight = m_rtClient.height; bool bShowVertScr = false; bool bShowHorzScr = false; if (!bShowVertScr && (m_pProperties->m_dwStyles & FWL_WGTSTYLE_VScroll)) bShowVertScr = (fs.y > iHeight); - if (!bShowHorzScr && (m_pProperties->m_dwStyles & FWL_WGTSTYLE_HScroll)) - bShowHorzScr = (fs.x > iWidth); CFX_SizeF szRange; if (bShowVertScr) { |