summaryrefslogtreecommitdiff
path: root/xfa/fwl/core/ifwl_spinbutton.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-11-16 13:54:01 -0800
committerCommit bot <commit-bot@chromium.org>2016-11-16 13:54:01 -0800
commit058d2d6b7851b77a371bb4d37d5da1148794397a (patch)
treece0d9ba4397c1314dec15334dff6ac5dac261bf4 /xfa/fwl/core/ifwl_spinbutton.cpp
parent8a3aa459fc5284f51bcd7e98e95bf6214f47bb67 (diff)
downloadpdfium-058d2d6b7851b77a371bb4d37d5da1148794397a.tar.xz
Continue formatting fwl/core
Review-Url: https://codereview.chromium.org/2510793003
Diffstat (limited to 'xfa/fwl/core/ifwl_spinbutton.cpp')
-rw-r--r--xfa/fwl/core/ifwl_spinbutton.cpp13
1 files changed, 7 insertions, 6 deletions
diff --git a/xfa/fwl/core/ifwl_spinbutton.cpp b/xfa/fwl/core/ifwl_spinbutton.cpp
index 0352ed991e..6ae2f6aa65 100644
--- a/xfa/fwl/core/ifwl_spinbutton.cpp
+++ b/xfa/fwl/core/ifwl_spinbutton.cpp
@@ -47,18 +47,19 @@ FWL_Type IFWL_SpinButton::GetClassID() const {
}
void IFWL_SpinButton::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) {
- if (bAutoSize) {
- rect.Set(0, 0, kMinWidth, kMinHeight);
- IFWL_Widget::GetWidgetRect(rect, true);
- } else {
+ if (!bAutoSize) {
rect = m_pProperties->m_rtWidget;
+ return;
}
+
+ rect.Set(0, 0, kMinWidth, kMinHeight);
+ IFWL_Widget::GetWidgetRect(rect, true);
}
void IFWL_SpinButton::Update() {
- if (IsLocked()) {
+ if (IsLocked())
return;
- }
+
GetClientRect(m_rtClient);
if (m_pProperties->m_dwStyleExes & FWL_STYLEEXE_SPB_Vert) {
m_rtUpButton.Set(m_rtClient.top, m_rtClient.left, m_rtClient.width,