mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
remove @ in LayoutTask.FontContext
This commit is contained in:
parent
5077c771a5
commit
f187035e25
6 changed files with 68 additions and 30 deletions
|
@ -79,7 +79,7 @@ impl FontHandleMethods for FontHandle {
|
|||
buf: ~[u8],
|
||||
style: &SpecifiedFontStyle)
|
||||
-> Result<FontHandle, ()> {
|
||||
let ft_ctx: FT_Library = fctx.ctx.ctx;
|
||||
let ft_ctx: FT_Library = fctx.ctx.get().ctx;
|
||||
if ft_ctx.is_null() { return Err(()); }
|
||||
|
||||
let face_result = do buf.as_imm_buf |bytes: *u8, len: uint| {
|
||||
|
@ -292,7 +292,7 @@ impl<'self> FontHandle {
|
|||
pub fn new_from_file(fctx: &FontContextHandle, file: &str,
|
||||
style: &SpecifiedFontStyle) -> Result<FontHandle, ()> {
|
||||
unsafe {
|
||||
let ft_ctx: FT_Library = fctx.ctx.ctx;
|
||||
let ft_ctx: FT_Library = fctx.ctx.get().ctx;
|
||||
if ft_ctx.is_null() { return Err(()); }
|
||||
|
||||
let mut face: FT_Face = ptr::null();
|
||||
|
@ -320,7 +320,7 @@ impl<'self> FontHandle {
|
|||
pub fn new_from_file_unstyled(fctx: &FontContextHandle, file: ~str)
|
||||
-> Result<FontHandle, ()> {
|
||||
unsafe {
|
||||
let ft_ctx: FT_Library = fctx.ctx.ctx;
|
||||
let ft_ctx: FT_Library = fctx.ctx.get().ctx;
|
||||
if ft_ctx.is_null() { return Err(()); }
|
||||
|
||||
let mut face: FT_Face = ptr::null();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue