зеркало из https://github.com/mozilla/pjs.git
Backing out bug 475968 patch to fix orange
This commit is contained in:
Коммит
006d522afb
|
@ -1138,24 +1138,8 @@ gfxWindowsFont::Measure(gfxTextRun *aTextRun,
|
|||
}
|
||||
}
|
||||
|
||||
gfxFont::RunMetrics metrics = gfxFont::Measure(aTextRun, aStart, aEnd,
|
||||
aBoundingBoxType, aRefContext,
|
||||
aSpacing);
|
||||
|
||||
// if aBoundingBoxType is LOOSE_INK_EXTENTS
|
||||
// and the underlying cairo font may be antialiased,
|
||||
// we can't trust Windows to have considered all the pixels
|
||||
// so we need to add "padding" to the bounds.
|
||||
// (see bugs 475968, 439831, compare also bug 445087)
|
||||
if (aBoundingBoxType == LOOSE_INK_EXTENTS &&
|
||||
mAntialiasOption != CAIRO_ANTIALIAS_NONE &&
|
||||
metrics.mBoundingBox.size.width > 0) {
|
||||
const PRUint32 appUnitsPerDevUnit = aTextRun->GetAppUnitsPerDevUnit();
|
||||
metrics.mBoundingBox.pos.x -= appUnitsPerDevUnit;
|
||||
metrics.mBoundingBox.size.width += 3 * appUnitsPerDevUnit;
|
||||
}
|
||||
|
||||
return metrics;
|
||||
return gfxFont::Measure(aTextRun, aStart, aEnd,
|
||||
aBoundingBoxType, aRefContext, aSpacing);
|
||||
}
|
||||
|
||||
FontEntry*
|
||||
|
|
Загрузка…
Ссылка в новой задаче