diff options
Diffstat (limited to 'src')
m--------- | src/rust-geom | 0 | ||||
m--------- | src/rust-glut | 0 | ||||
m--------- | src/rust-http-client | 0 | ||||
m--------- | src/rust-layers | 0 | ||||
m--------- | src/rust-mozjs | 0 | ||||
-rw-r--r-- | src/servo/text/native_font/quartz_native_font.rs | 14 |
6 files changed, 7 insertions, 7 deletions
diff --git a/src/rust-geom b/src/rust-geom -Subproject d8d082695488d083d7f5c34aebc572285a952f2 +Subproject 29ef223a79e4023f3dd1ddbf16ece4a46c03955 diff --git a/src/rust-glut b/src/rust-glut -Subproject d4e6a7c8a85b6d6d2791200bc8bd6b2bbe19b5d +Subproject 9626ff11e6b04cf9df5997ed818eea7662539ce diff --git a/src/rust-http-client b/src/rust-http-client -Subproject 9a1625d59a37949bf1c8b86f3766080e1e4d10c +Subproject bee86e1fd742abf02d769db54b0d8b91734a4ba diff --git a/src/rust-layers b/src/rust-layers -Subproject 51832ea94b0ffcd21b6bfba37ad969284c41a07 +Subproject 412e8ec69827031b59af4e35215c6b18fd25e8b diff --git a/src/rust-mozjs b/src/rust-mozjs -Subproject bbc2ddbe86393524cccf1fd797ef85213560cce +Subproject 1b90c6fd054499060ff6a72f41c0c1266dcde06 diff --git a/src/servo/text/native_font/quartz_native_font.rs b/src/servo/text/native_font/quartz_native_font.rs index 8cced608188..218d02b8dc2 100644 --- a/src/servo/text/native_font/quartz_native_font.rs +++ b/src/servo/text/native_font/quartz_native_font.rs @@ -5,7 +5,7 @@ export QuartzNativeFont, with_test_native_font, create; import libc::size_t; import ptr::null; import unsafe::reinterpret_cast; -import result::{result, ok}; +import result::{Result, Ok}; import glyph::GlyphIndex; import cocoa::cg::{ CGDataProviderRef, @@ -38,19 +38,19 @@ struct QuartzNativeFont/& { CGDataProviderRelease(self.fontprov); } - fn glyph_index(_codepoint: char) -> option<GlyphIndex> { + fn glyph_index(_codepoint: char) -> Option<GlyphIndex> { // FIXME - some(40u) + Some(40u) } // FIXME: What unit is this returning? Let's have a custom type - fn glyph_h_advance(_glyph: GlyphIndex) -> option<int> { + fn glyph_h_advance(_glyph: GlyphIndex) -> Option<int> { // FIXME - some(15) + Some(15) } } -fn create(buf: &~[u8]) -> result<QuartzNativeFont, ()> { +fn create(buf: &~[u8]) -> Result<QuartzNativeFont, ()> { let fontprov = vec::as_buf(*buf, |cbuf, len| { CGDataProviderCreateWithData( null(), @@ -64,7 +64,7 @@ fn create(buf: &~[u8]) -> result<QuartzNativeFont, ()> { // FIXME: Error handling assert cgfont.is_not_null(); - return ok(QuartzNativeFont(fontprov, cgfont)); + return Ok(QuartzNativeFont(fontprov, cgfont)); } fn with_test_native_font(f: fn@(nf: &NativeFont)) { |