mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-25 09:57:32 +09:00
Issue #2191 - Remove redundant CairoScaledFont accessor from gfxFont subclasses.
Backported from Mozilla bug 1385029.
This commit is contained in:
parent
a35ce5e5e1
commit
b721b6257f
4 changed files with 6 additions and 8 deletions
|
|
@ -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());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue