mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-23 23:57:31 +09:00
Issue #2191 - Make ScaledFont::SetCairoScaledFont virtual so it can be accessed from outside Moz2D.
Backported from Mozilla bug 1385029.
This commit is contained in:
parent
b5d5963a4f
commit
c54e2502b0
2 changed files with 5 additions and 2 deletions
|
|
@ -718,6 +718,9 @@ public:
|
||||||
return mUserData.Get(key);
|
return mUserData.Get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
virtual cairo_scaled_font_t* GetCairoScaledFont() { return nullptr; }
|
||||||
|
virtual void SetCairoScaledFont(cairo_scaled_font_t* font) {}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
ScaledFont() {}
|
ScaledFont() {}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,8 +48,8 @@ public:
|
||||||
|
|
||||||
#ifdef USE_CAIRO_SCALED_FONT
|
#ifdef USE_CAIRO_SCALED_FONT
|
||||||
bool PopulateCairoScaledFont();
|
bool PopulateCairoScaledFont();
|
||||||
cairo_scaled_font_t* GetCairoScaledFont() { return mScaledFont; }
|
virtual cairo_scaled_font_t* GetCairoScaledFont() { return mScaledFont; }
|
||||||
void SetCairoScaledFont(cairo_scaled_font_t* font);
|
virtual void SetCairoScaledFont(cairo_scaled_font_t* font);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue