Backed out changeset 6cacb08f6f5c (bug 1251995)

This commit is contained in:
Carsten "Tomcat" Book 2016-03-07 12:18:10 +01:00
Родитель 857c159019
Коммит 15a46d77df
1 изменённых файлов: 3 добавлений и 3 удалений

Просмотреть файл

@ -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;
}