Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(338)

Unified Diff: xfa/fwl/core/cfwl_spinbutton.cpp

Issue 2556873004: Convert GetWidgetRect to return rect. (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: xfa/fwl/core/cfwl_spinbutton.cpp
diff --git a/xfa/fwl/core/cfwl_spinbutton.cpp b/xfa/fwl/core/cfwl_spinbutton.cpp
index 03ec5afdf8a5e8727f76d79ac9044a815ff3801d..43229d9c9e4e3cdcdf67ee893b5a5f8e8c940c98 100644
--- a/xfa/fwl/core/cfwl_spinbutton.cpp
+++ b/xfa/fwl/core/cfwl_spinbutton.cpp
@@ -49,14 +49,14 @@ 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;
- }
+CFX_RectF CFWL_SpinButton::GetWidgetRect(bool bAutoSize) {
+ if (!bAutoSize)
+ return m_pProperties->m_rtWidget;
+ CFX_RectF rect;
rect.Set(0, 0, kMinWidth, kMinHeight);
InflateWidgetRect(rect);
+ return rect;
}
void CFWL_SpinButton::Update() {

Powered by Google App Engine
This is Rietveld 408576698