зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changesets e7c4304d45d7 and 75d3146ac0d3 (bug 970891) for Android reftest failures.
CLOSED TREE
This commit is contained in:
Родитель
dbe89b855e
Коммит
2e28589dc1
|
@ -4580,20 +4580,7 @@ gfxFontGroup::MakeSpaceTextRun(const Parameters *aParams, uint32_t aFlags)
|
|||
textRun->AddGlyphRun(font, gfxTextRange::kFontGroup, 0, false);
|
||||
}
|
||||
else {
|
||||
if (font->GetSpaceGlyph()) {
|
||||
// Normally, the font has a cached space glyph, so we can avoid
|
||||
// the cost of calling FindFontForChar.
|
||||
textRun->SetSpaceGlyph(font, aParams->mContext, 0);
|
||||
} else {
|
||||
// In case the primary font doesn't have <space> (bug 970891),
|
||||
// find one that does.
|
||||
uint8_t matchType;
|
||||
nsRefPtr<gfxFont> spaceFont =
|
||||
FindFontForChar(' ', 0, MOZ_SCRIPT_LATIN, nullptr, &matchType);
|
||||
if (spaceFont) {
|
||||
textRun->SetSpaceGlyph(spaceFont, aParams->mContext, 0);
|
||||
}
|
||||
}
|
||||
textRun->SetSpaceGlyph(font, aParams->mContext, 0);
|
||||
}
|
||||
|
||||
// Note that the gfxGlyphExtents glyph bounds storage for the font will
|
||||
|
|
|
@ -295,6 +295,3 @@ pref(layout.css.text-align-true-value.enabled,true) == text-align-true.html text
|
|||
!= control-chars-02.html control-chars-02-notref.html
|
||||
== control-chars-03a.html control-chars-03-ref.html
|
||||
== control-chars-03b.html control-chars-03-ref.html
|
||||
|
||||
# font fallback for <space> when not supported in the primary font family - bug 970891
|
||||
HTTP(..) == space-font-1.html space-font-1-ref.html
|
||||
|
|
|
@ -1,26 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 970891</title>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: "test";
|
||||
src: url(../fonts/markA.ttf);
|
||||
}
|
||||
div {
|
||||
font-family: test, monospace;
|
||||
font-size: 16px;
|
||||
line-height: 32px;
|
||||
}
|
||||
span {
|
||||
font-family: monospace;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div><b>A</b><span> </span><b>A</b><span> </span><i>A</i><span> </span><i>A</i></div>
|
||||
</body>
|
||||
|
||||
</html>
|
|
@ -1,25 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Bug 970891</title>
|
||||
<style type="text/css">
|
||||
@font-face {
|
||||
font-family: "test";
|
||||
src: url(../fonts/markA.ttf);
|
||||
}
|
||||
div {
|
||||
font-family: test, monospace;
|
||||
font-size: 16px;
|
||||
line-height: 32px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<!-- markA does not have a glyph for the <space> character,
|
||||
so the spaces should fall back to 'monospace' -->
|
||||
<div><b>A</b> <b>A</b> <i>A</i> <i>A</i></div>
|
||||
</body>
|
||||
|
||||
</html>
|
Загрузка…
Ссылка в новой задаче