diff options
author | dsinclair <dsinclair@chromium.org> | 2016-12-07 18:47:00 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-12-07 18:47:00 -0800 |
commit | da911bc12558667555266425d0b7e83296e8cc7d (patch) | |
tree | d0e0e84597e30f2d59856a9a55b737f49faa9522 /xfa/fwl/core/cfwl_spinbutton.cpp | |
parent | 67c6ca3cd86b6a31c888264bb8067c6c4324e56c (diff) | |
download | pdfium-da911bc12558667555266425d0b7e83296e8cc7d.tar.xz |
Convert GetWidgetRect to return rect.
Current GetWidgetRect accepts the rect as an out-param. This CL converts the
code to return the rect instead.
Review-Url: https://codereview.chromium.org/2556873004
Diffstat (limited to 'xfa/fwl/core/cfwl_spinbutton.cpp')
-rw-r--r-- | xfa/fwl/core/cfwl_spinbutton.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/xfa/fwl/core/cfwl_spinbutton.cpp b/xfa/fwl/core/cfwl_spinbutton.cpp index 03ec5afdf8..68844f9900 100644 --- a/xfa/fwl/core/cfwl_spinbutton.cpp +++ b/xfa/fwl/core/cfwl_spinbutton.cpp @@ -20,9 +20,6 @@ #include "xfa/fwl/core/ifwl_themeprovider.h" namespace { - -const int kMinWidth = 18; -const int kMinHeight = 32; const int kElapseTime = 200; } // namespace @@ -49,16 +46,6 @@ FWL_Type CFWL_SpinButton::GetClassID() const { return FWL_Type::SpinButton; } -void CFWL_SpinButton::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { - if (!bAutoSize) { - rect = m_pProperties->m_rtWidget; - return; - } - - rect.Set(0, 0, kMinWidth, kMinHeight); - InflateWidgetRect(rect); -} - void CFWL_SpinButton::Update() { if (IsLocked()) return; |