зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 6cacb08f6f5c (bug 1251995)
This commit is contained in:
Родитель
857c159019
Коммит
15a46d77df
|
@ -974,12 +974,12 @@ gfxTextRun::BreakAndMeasureText(uint32_t aStart, uint32_t aMaxLength,
|
|||
}
|
||||
|
||||
if (aMetrics) {
|
||||
auto fitEnd = aStart + charsFit;
|
||||
*aMetrics = MeasureText(Range(aStart, fitEnd), aBoundingBoxType,
|
||||
auto end = aStart + charsFit;
|
||||
*aMetrics = MeasureText(Range(aStart, end), aBoundingBoxType,
|
||||
aRefDrawTarget, aProvider);
|
||||
if (trimmableChars) {
|
||||
Metrics trimMetrics =
|
||||
MeasureText(Range(fitEnd - trimmableChars, fitEnd),
|
||||
MeasureText(Range(end - trimmableChars, end),
|
||||
aBoundingBoxType, aRefDrawTarget, aProvider);
|
||||
aMetrics->mAdvanceWidth -= trimMetrics.mAdvanceWidth;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче