summaryrefslogtreecommitdiff
path: root/fpdfsdk/pdfwindow/PWL_Utils.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-07-18 10:04:07 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-18 10:04:07 -0700
commitefd5a99f98a263da9de52059681ff6ed27b2567c (patch)
tree83abdb823c7b2941f4891f4f27986576c740ab7b /fpdfsdk/pdfwindow/PWL_Utils.cpp
parentd8f397878b5cd83ba4b75b3e69331986357301b9 (diff)
downloadpdfium-efd5a99f98a263da9de52059681ff6ed27b2567c.tar.xz
Removing default params from CFX_Edit.
This CL removes all of the default params from CFX_Edit. They are either moved to the callsite or removed completely if unused. Review-Url: https://codereview.chromium.org/2152473002
Diffstat (limited to 'fpdfsdk/pdfwindow/PWL_Utils.cpp')
-rw-r--r--fpdfsdk/pdfwindow/PWL_Utils.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/fpdfsdk/pdfwindow/PWL_Utils.cpp b/fpdfsdk/pdfwindow/PWL_Utils.cpp
index c8b2239a36..a9698860fe 100644
--- a/fpdfsdk/pdfwindow/PWL_Utils.cpp
+++ b/fpdfsdk/pdfwindow/PWL_Utils.cpp
@@ -441,12 +441,12 @@ CFX_ByteString CPWL_Utils::GetTextAppStream(const CFX_FloatRect& rcBBox,
std::unique_ptr<CFX_Edit> pEdit(new CFX_Edit);
pEdit->SetFontMap(pFontMap);
pEdit->SetPlateRect(rcBBox);
- pEdit->SetAlignmentH(nAlignmentH);
- pEdit->SetAlignmentV(nAlignmentV);
- pEdit->SetMultiLine(bMultiLine);
- pEdit->SetAutoReturn(bAutoReturn);
+ pEdit->SetAlignmentH(nAlignmentH, TRUE);
+ pEdit->SetAlignmentV(nAlignmentV, TRUE);
+ pEdit->SetMultiLine(bMultiLine, TRUE);
+ pEdit->SetAutoReturn(bAutoReturn, TRUE);
if (IsFloatZero(fFontSize))
- pEdit->SetAutoFontSize(TRUE);
+ pEdit->SetAutoFontSize(TRUE, TRUE);
else
pEdit->SetFontSize(fFontSize);
@@ -473,12 +473,12 @@ CFX_ByteString CPWL_Utils::GetPushButtonAppStream(const CFX_FloatRect& rcBBox,
std::unique_ptr<CFX_Edit> pEdit(new CFX_Edit);
pEdit->SetFontMap(pFontMap);
- pEdit->SetAlignmentH(1);
- pEdit->SetAlignmentV(1);
- pEdit->SetMultiLine(FALSE);
- pEdit->SetAutoReturn(FALSE);
+ pEdit->SetAlignmentH(1, TRUE);
+ pEdit->SetAlignmentV(1, TRUE);
+ pEdit->SetMultiLine(FALSE, TRUE);
+ pEdit->SetAutoReturn(FALSE, TRUE);
if (IsFloatZero(fFontSize))
- pEdit->SetAutoFontSize(TRUE);
+ pEdit->SetAutoFontSize(TRUE, TRUE);
else
pEdit->SetFontSize(fFontSize);