Bug 407059 - Part 0: Remove the Truncate() calls from nsMathMLChar::StretchEnumContext. r=karlt

This commit is contained in:
Frédéric Wang 2014-04-23 06:57:41 -07:00
Родитель 8d457861b8
Коммит 94bbbf60fd
1 изменённых файлов: 0 добавлений и 4 удалений

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

@ -963,8 +963,6 @@ nsMathMLChar::StretchEnumContext::TryVariants(nsGlyphTable* aGlyphTable,
// Use our stretchy style context now that stretching is in progress
nsStyleContext *sc = mChar->mStyleContext;
nsFont font = sc->StyleFont()->mFont;
// Ensure SetFontFamily will set the font
font.name.Truncate();
bool isVertical = (mDirection == NS_STRETCH_DIRECTION_VERTICAL);
bool largeop = (NS_STRETCH_LARGEOP & mStretchHint) != 0;
@ -1064,8 +1062,6 @@ nsMathMLChar::StretchEnumContext::TryParts(nsGlyphTable* aGlyphTable,
// Use our stretchy style context now that stretching is in progress
nsFont font = mChar->mStyleContext->StyleFont()->mFont;
// Ensure SetFontFamily will set the font
font.name.Truncate();
// Compute the bounding metrics of all partial glyphs
nsAutoPtr<gfxTextRun> textRun[4];