mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Upgrade to rustc 1.4.0-dev (cb9323ec0 2015-09-01)
This commit is contained in:
parent
ba2cb77c26
commit
40b4348824
28 changed files with 349 additions and 338 deletions
|
@ -28,7 +28,7 @@ use util::geometry::Au;
|
|||
// needed by the text shaper as well as access to the underlying font
|
||||
// resources needed by the graphics layer to draw glyphs.
|
||||
|
||||
pub trait FontHandleMethods {
|
||||
pub trait FontHandleMethods: Sized {
|
||||
fn new_from_template(fctx: &FontContextHandle, template: Arc<FontTemplateData>, pt_size: Option<Au>)
|
||||
-> Result<Self,()>;
|
||||
fn template(&self) -> Arc<FontTemplateData>;
|
||||
|
|
|
@ -70,7 +70,7 @@ impl FontTemplate {
|
|||
};
|
||||
|
||||
let maybe_weak_ref = match maybe_strong_ref {
|
||||
Some(ref strong_ref) => Some(strong_ref.downgrade()),
|
||||
Some(ref strong_ref) => Some(Arc::downgrade(strong_ref)),
|
||||
None => None,
|
||||
};
|
||||
|
||||
|
@ -159,7 +159,7 @@ impl FontTemplate {
|
|||
|
||||
assert!(self.strong_ref.is_none());
|
||||
let template_data = Arc::new(FontTemplateData::new(self.identifier.clone(), None));
|
||||
self.weak_ref = Some(template_data.downgrade());
|
||||
self.weak_ref = Some(Arc::downgrade(&template_data));
|
||||
template_data
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue