diff options
author | Matt Brubeck <mbrubeck@limpet.net> | 2016-05-18 12:00:39 -0700 |
---|---|---|
committer | Matt Brubeck <mbrubeck@limpet.net> | 2016-05-19 09:44:56 -0700 |
commit | 1a61273e1e010032f03d732bfff5261d353dcbc6 (patch) | |
tree | 50a3e62af3555e6bc20b2c78fa0cdb5ed7213744 /components | |
parent | 7f6b1da85cd9bd02e1f16ba48d00470e6fd5f9cb (diff) | |
download | servo-1a61273e1e010032f03d732bfff5261d353dcbc6.tar.gz servo-1a61273e1e010032f03d732bfff5261d353dcbc6.zip |
Make FontHandle fields private
Diffstat (limited to 'components')
-rw-r--r-- | components/gfx/platform/freetype/font.rs | 6 | ||||
-rw-r--r-- | components/gfx/platform/macos/font.rs | 4 |
2 files changed, 5 insertions, 5 deletions
diff --git a/components/gfx/platform/freetype/font.rs b/components/gfx/platform/freetype/font.rs index 62982e92170..f6dcbfe27b9 100644 --- a/components/gfx/platform/freetype/font.rs +++ b/components/gfx/platform/freetype/font.rs @@ -49,9 +49,9 @@ impl FontTableMethods for FontTable { pub struct FontHandle { // The font binary. This must stay valid for the lifetime of the font, // if the font is created using FT_Memory_Face. - pub font_data: Arc<FontTemplateData>, - pub face: FT_Face, - pub handle: FontContextHandle + font_data: Arc<FontTemplateData>, + face: FT_Face, + handle: FontContextHandle, } impl Drop for FontHandle { diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index 7f642634495..d9b0d60e9d4 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -59,8 +59,8 @@ impl FontTableMethods for FontTable { #[derive(Debug)] pub struct FontHandle { - pub font_data: Arc<FontTemplateData>, - pub ctfont: CTFont, + font_data: Arc<FontTemplateData>, + ctfont: CTFont, } impl FontHandleMethods for FontHandle { |