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

Unified Diff: core/fpdfdoc/ctypeset.cpp

Issue 2146993002: Remove default params in CPDF_VariableText. (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@ifx_cleanup_3
Patch Set: Fix calls to GetFont{Ascent|Descent} Created 4 years, 5 months 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
« no previous file with comments | « core/fpdfdoc/cpdf_variabletext.cpp ('k') | core/fpdfdoc/include/cpdf_variabletext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: core/fpdfdoc/ctypeset.cpp
diff --git a/core/fpdfdoc/ctypeset.cpp b/core/fpdfdoc/ctypeset.cpp
index 8c85e7992291cd59ef3dc9bcf164fbfdc87e5862..57d3733dc3f65749f482ba3f46f52bc1218f523a 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 =
« no previous file with comments | « core/fpdfdoc/cpdf_variabletext.cpp ('k') | core/fpdfdoc/include/cpdf_variabletext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698