Issue #2191 - Remove redundant CairoScaledFont accessor from gfxFont subclasses.

Backported from Mozilla bug 1385029.
This commit is contained in:
Job Bautista 2023-04-05 18:47:25 +08:00 • committed by roytam1
commit b721b6257f
4 changed files with 6 additions and 8 deletions

View file

@ -24,12 +24,12 @@ class gfxFT2LockedFace {
public:
explicit gfxFT2LockedFace(gfxFT2FontBase *aFont) :
mGfxFont(aFont),
mFace(cairo_ft_scaled_font_lock_face(aFont->CairoScaledFont()))
mFace(cairo_ft_scaled_font_lock_face(aFont->GetCairoScaledFont()))
{ }
~gfxFT2LockedFace()
{
if (mFace) {
cairo_ft_scaled_font_unlock_face(mGfxFont->CairoScaledFont());
cairo_ft_scaled_font_unlock_face(mGfxFont->GetCairoScaledFont());
}
}