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

Side by Side Diff: xfa/fwl/core/cfwl_monthcalendar.cpp

Issue 2555253002: Split CFWL_Widget::GetWidgetRect into two parts (Closed)
Patch Set: Rebase to master 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 unified diff | Download patch
« no previous file with comments | « xfa/fwl/core/cfwl_listbox.cpp ('k') | xfa/fwl/core/cfwl_picturebox.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 PDFium Authors. All rights reserved. 1 // Copyright 2014 PDFium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
6 6
7 #include "xfa/fwl/core/cfwl_monthcalendar.h" 7 #include "xfa/fwl/core/cfwl_monthcalendar.h"
8 8
9 #include <algorithm> 9 #include <algorithm>
10 #include <memory> 10 #include <memory>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 } 161 }
162 162
163 void CFWL_MonthCalendar::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) { 163 void CFWL_MonthCalendar::GetWidgetRect(CFX_RectF& rect, bool bAutoSize) {
164 if (!bAutoSize) { 164 if (!bAutoSize) {
165 rect = m_pProperties->m_rtWidget; 165 rect = m_pProperties->m_rtWidget;
166 return; 166 return;
167 } 167 }
168 168
169 CFX_SizeF fs = CalcSize(); 169 CFX_SizeF fs = CalcSize();
170 rect.Set(0, 0, fs.x, fs.y); 170 rect.Set(0, 0, fs.x, fs.y);
171 CFWL_Widget::GetWidgetRect(rect, true); 171 InflateWidgetRect(rect);
172 } 172 }
173 173
174 void CFWL_MonthCalendar::Update() { 174 void CFWL_MonthCalendar::Update() {
175 if (IsLocked()) 175 if (IsLocked())
176 return; 176 return;
177 if (!m_pProperties->m_pThemeProvider) 177 if (!m_pProperties->m_pThemeProvider)
178 m_pProperties->m_pThemeProvider = GetAvailableTheme(); 178 m_pProperties->m_pThemeProvider = GetAvailableTheme();
179 179
180 GetCapValue(); 180 GetCapValue();
181 if (!m_bInitialized) { 181 if (!m_bInitialized) {
(...skipping 902 matching lines...) Expand 10 before | Expand all | Expand 10 after
1084 uint32_t dwSt, 1084 uint32_t dwSt,
1085 CFX_RectF rc, 1085 CFX_RectF rc,
1086 CFX_WideString& wsday) 1086 CFX_WideString& wsday)
1087 : iDay(day), 1087 : iDay(day),
1088 iDayOfWeek(dayofweek), 1088 iDayOfWeek(dayofweek),
1089 dwStates(dwSt), 1089 dwStates(dwSt),
1090 rect(rc), 1090 rect(rc),
1091 wsDay(wsday) {} 1091 wsDay(wsday) {}
1092 1092
1093 CFWL_MonthCalendar::DATEINFO::~DATEINFO() {} 1093 CFWL_MonthCalendar::DATEINFO::~DATEINFO() {}
OLDNEW
« no previous file with comments | « xfa/fwl/core/cfwl_listbox.cpp ('k') | xfa/fwl/core/cfwl_picturebox.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698