From 4debddffd0c4cad48ecf153e2584b311b0a16791 Mon Sep 17 00:00:00 2001 From: Dan Sinclair Date: Tue, 21 Nov 2017 16:28:00 +0000 Subject: Rename the CXFA_WidgetData size methods from Get to Try These methods all return a boolean so should be named Try instead of Get. Change-Id: Ic447bd400c0b4ddcb0d15893883d480ebc33e17d Reviewed-on: https://pdfium-review.googlesource.com/18891 Reviewed-by: Henrique Nakashima Commit-Queue: dsinclair --- xfa/fxfa/parser/cxfa_widgetdata.cpp | 12 ++++++------ xfa/fxfa/parser/cxfa_widgetdata.h | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'xfa/fxfa/parser') diff --git a/xfa/fxfa/parser/cxfa_widgetdata.cpp b/xfa/fxfa/parser/cxfa_widgetdata.cpp index 1828854500..72c2d7fd34 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.cpp +++ b/xfa/fxfa/parser/cxfa_widgetdata.cpp @@ -327,27 +327,27 @@ CXFA_BindData CXFA_WidgetData::GetBindData() { m_pNode->JSNode()->GetProperty(0, XFA_Element::Bind, false)); } -bool CXFA_WidgetData::GetWidth(float& fWidth) { +bool CXFA_WidgetData::TryWidth(float& fWidth) { return TryMeasure(XFA_Attribute::W, fWidth); } -bool CXFA_WidgetData::GetHeight(float& fHeight) { +bool CXFA_WidgetData::TryHeight(float& fHeight) { return TryMeasure(XFA_Attribute::H, fHeight); } -bool CXFA_WidgetData::GetMinWidth(float& fMinWidth) { +bool CXFA_WidgetData::TryMinWidth(float& fMinWidth) { return TryMeasure(XFA_Attribute::MinW, fMinWidth); } -bool CXFA_WidgetData::GetMinHeight(float& fMinHeight) { +bool CXFA_WidgetData::TryMinHeight(float& fMinHeight) { return TryMeasure(XFA_Attribute::MinH, fMinHeight); } -bool CXFA_WidgetData::GetMaxWidth(float& fMaxWidth) { +bool CXFA_WidgetData::TryMaxWidth(float& fMaxWidth) { return TryMeasure(XFA_Attribute::MaxW, fMaxWidth); } -bool CXFA_WidgetData::GetMaxHeight(float& fMaxHeight) { +bool CXFA_WidgetData::TryMaxHeight(float& fMaxHeight) { return TryMeasure(XFA_Attribute::MaxH, fMaxHeight); } diff --git a/xfa/fxfa/parser/cxfa_widgetdata.h b/xfa/fxfa/parser/cxfa_widgetdata.h index 84369f7177..9d955a3d99 100644 --- a/xfa/fxfa/parser/cxfa_widgetdata.h +++ b/xfa/fxfa/parser/cxfa_widgetdata.h @@ -61,12 +61,12 @@ class CXFA_WidgetData : public CXFA_DataData { CXFA_CalculateData GetCalculateData(); CXFA_ValidateData GetValidateData(bool bModified); - bool GetWidth(float& fWidth); - bool GetHeight(float& fHeight); - bool GetMinWidth(float& fMinWidth); - bool GetMinHeight(float& fMinHeight); - bool GetMaxWidth(float& fMaxWidth); - bool GetMaxHeight(float& fMaxHeight); + bool TryWidth(float& fWidth); + bool TryHeight(float& fHeight); + bool TryMinWidth(float& fMinWidth); + bool TryMinHeight(float& fMinHeight); + bool TryMaxWidth(float& fMaxWidth); + bool TryMaxHeight(float& fMaxHeight); CXFA_BorderData GetUIBorderData(); CFX_RectF GetUIMargin(); -- cgit v1.2.3