This commit is contained in:
Jonathan Kew 2009-07-15 11:06:15 +01:00
Родитель 404420dcd6 1bd592f93d
Коммит 12912d3c59
5 изменённых файлов: 2 добавлений и 38 удалений

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

@ -1137,24 +1137,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*

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

@ -1,10 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
td { padding: 3px; }
</style>
</head>
<body>
<table>
<tbody style="height:200px; overflow:auto;">

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

@ -1,10 +1,5 @@
<!DOCTYPE html>
<html>
<head>
<style type="text/css">
td { padding: 3px; }
</style>
</head>
<body>
<table>
<tbody style="height:200px;">

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

@ -1,9 +1,4 @@
<html>
<head>
<style type="text/css">
td { padding: 3px; }
</style>
</head>
<body>
<table>
<tbody style="height:200px; overflow:auto;">

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

@ -1,9 +1,4 @@
<html>
<head>
<style type="text/css">
td { padding: 3px; }
</style>
</head>
<body>
<table>
<tbody style="height:200px;">