diff options
author | Olaf Buddenhagen <antrik@users.sf.net> | 2015-12-09 19:35:14 +0100 |
---|---|---|
committer | Olaf Buddenhagen <antrik@users.sf.net> | 2015-12-12 10:04:33 +0100 |
commit | c5ede5851ee2b31e71d50e58660fc4882a15febd (patch) | |
tree | fb7ae5c088fa5ba0d2ab601bad471dd3ae30974d /components/gfx/platform/macos | |
parent | 3d078f7c6420526d47bd50c06217b2feaab35cb2 (diff) | |
download | servo-c5ede5851ee2b31e71d50e58660fc4882a15febd.tar.gz servo-c5ede5851ee2b31e71d50e58660fc4882a15febd.zip |
Derive Debug on FontGroup and its components
Diffstat (limited to 'components/gfx/platform/macos')
-rw-r--r-- | components/gfx/platform/macos/font.rs | 1 | ||||
-rw-r--r-- | components/gfx/platform/macos/font_context.rs | 2 | ||||
-rw-r--r-- | components/gfx/platform/macos/font_template.rs | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/components/gfx/platform/macos/font.rs b/components/gfx/platform/macos/font.rs index c9e464a0eb2..a0667245cbe 100644 --- a/components/gfx/platform/macos/font.rs +++ b/components/gfx/platform/macos/font.rs @@ -57,6 +57,7 @@ impl FontTableMethods for FontTable { } } +#[derive(Debug)] pub struct FontHandle { pub font_data: Arc<FontTemplateData>, pub ctfont: CTFont, diff --git a/components/gfx/platform/macos/font_context.rs b/components/gfx/platform/macos/font_context.rs index ca718de09ca..e260f84b17b 100644 --- a/components/gfx/platform/macos/font_context.rs +++ b/components/gfx/platform/macos/font_context.rs @@ -4,7 +4,7 @@ use util::mem::HeapSizeOf; -#[derive(Clone)] +#[derive(Clone, Debug)] pub struct FontContextHandle { ctx: () } diff --git a/components/gfx/platform/macos/font_template.rs b/components/gfx/platform/macos/font_template.rs index 7e922a6292c..d6ee6b9f3f0 100644 --- a/components/gfx/platform/macos/font_template.rs +++ b/components/gfx/platform/macos/font_template.rs @@ -17,7 +17,7 @@ use string_cache::Atom; /// The identifier is a PostScript font name. The /// CTFont object is cached here for use by the /// paint functions that create CGFont references. -#[derive(Deserialize, Serialize)] +#[derive(Deserialize, Serialize, Debug)] pub struct FontTemplateData { /// The `CTFont` object, if present. This is cached here so that we don't have to keep creating /// `CTFont` instances over and over. It can always be recreated from the `identifier` and/or @@ -64,6 +64,7 @@ impl FontTemplateData { } } +#[derive(Debug)] pub struct CachedCTFont(Mutex<Option<CTFont>>); impl Deref for CachedCTFont { |