b=499853; swimplify missing glyph rendering on mobile; r=stuart
--- a/gfx/thebes/src/gfxFontMissingGlyphs.cpp
+++ b/gfx/thebes/src/gfxFontMissingGlyphs.cpp
@@ -219,19 +219,25 @@ gfxFontMissingGlyphs::DrawMissingGlyph(g
aContext->SetDash(gfxContext::gfxLineSolid);
aContext->SetLineCap(gfxContext::LINE_CAP_SQUARE);
aContext->SetLineJoin(gfxContext::LINE_JOIN_MITER);
gfxRGBA color = currentColor;
color.a *= BOX_BORDER_OPACITY;
aContext->SetDeviceColor(color);
aContext->NewPath();
aContext->Rectangle(borderStrokeRect);
+
+#ifdef MOZ_GFX_OPTIMIZE_MOBILE
+ aContext->Fill();
+#else
aContext->Stroke();
+#endif
}
+#ifndef MOZ_GFX_OPTIMIZE_MOBILE
gfxPoint center(aRect.X() + aRect.Width()/2,
aRect.Y() + aRect.Height()/2);
gfxFloat halfGap = HEX_CHAR_GAP/2.0;
gfxFloat top = -(MINIFONT_HEIGHT + halfGap);
if (aChar < 0x10000) {
if (aRect.Width() >= 2*MINIFONT_WIDTH + HEX_CHAR_GAP &&
aRect.Height() >= 2*MINIFONT_HEIGHT + HEX_CHAR_GAP) {
// Draw 4 digits for BMP
@@ -263,16 +269,17 @@ gfxFontMissingGlyphs::DrawMissingGlyph(g
DrawHexChar(aContext,
center + gfxPoint(first, halfGap), (aChar >> 8) & 0xF);
DrawHexChar(aContext,
center + gfxPoint(second, halfGap), (aChar >> 4) & 0xF);
DrawHexChar(aContext,
center + gfxPoint(third, halfGap), aChar & 0xF);
}
}
+#endif
aContext->Restore();
}
gfxFloat
gfxFontMissingGlyphs::GetDesiredMinWidth(PRUint32 aChar)
{
/**