summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/ctypeset.cpp
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-07-18 10:18:56 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-18 10:18:56 -0700
commit74a30b76a0a50fc92cb567fa2a9e3500f04c0883 (patch)
tree22cea9400e9e11fd9305efe5705c0b94e273e468 /core/fpdfdoc/ctypeset.cpp
parentefd5a99f98a263da9de52059681ff6ed27b2567c (diff)
downloadpdfium-74a30b76a0a50fc92cb567fa2a9e3500f04c0883.tar.xz
Remove default params in CPDF_VariableText.
This Cl cleans up the default params and any supporting code if necessary. Review-Url: https://codereview.chromium.org/2146993002
Diffstat (limited to 'core/fpdfdoc/ctypeset.cpp')
-rw-r--r--core/fpdfdoc/ctypeset.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/core/fpdfdoc/ctypeset.cpp b/core/fpdfdoc/ctypeset.cpp
index 8c85e79922..57d3733dc3 100644
--- a/core/fpdfdoc/ctypeset.cpp
+++ b/core/fpdfdoc/ctypeset.cpp
@@ -300,10 +300,8 @@ void CTypeset::SplitLines(FX_BOOL bTypeset, FX_FLOAT fFontSize) {
}
if (pWord) {
if (bTypeset) {
- fLineAscent =
- std::max(fLineAscent, m_pVT->GetWordAscent(*pWord, TRUE));
- fLineDescent =
- std::min(fLineDescent, m_pVT->GetWordDescent(*pWord, TRUE));
+ fLineAscent = std::max(fLineAscent, m_pVT->GetWordAscent(*pWord));
+ fLineDescent = std::min(fLineDescent, m_pVT->GetWordDescent(*pWord));
fWordWidth = m_pVT->GetWordWidth(*pWord);
} else {
fLineAscent =