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