if (aClipRect) { aRenderingContext.PopState(clipState); }
if (aClipRect) aRenderingContext.PopState();
nsGlyphTable::DrawGlyph(nsIRenderingContext& aRenderingContext,                        nsFont&              aFont,                        nsGlyphCode&         aGlyphCode,                        nscoord              aX,                        nscoord              aY,                        nsRect*              aClipRect){  PRBool clipState;  if (aClipRect) {    aRenderingContext.PushState();    aRenderingContext.SetClipRect(*aClipRect, nsClipCombine_kIntersect, clipState);  }  if (aGlyphCode.font) {    // glyph not associated to our primary font, it comes from an external font    mFontName.StringAt(aGlyphCode.font, aFont.name);    aRenderingContext.SetFont(aFont, nsnull);  }  //if (mType == NS_TABLE_TYPE_UNICODE)    aRenderingContext.DrawString((PRUnichar*)&aGlyphCode.code, PRUint32(1), aX, aY);  //else  //NS_ASSERTION(0, "Error *** Not yet implemented");  //aRenderingContext.DrawStringI((PRUint16*)&aGlyphCode.code, PRUint32(1), aX, aY);  if (aGlyphCode.font) {    // restore our primary font in the rendering context    mFontName.StringAt(0, aFont.name);    aRenderingContext.SetFont(aFont, nsnull);  }  if (aClipRect) {    aRenderingContext.PopState(clipState);  }}