diff --git a/src/rust-http-client b/src/rust-http-client index bbf4b170fd4..db00f7d1feb 160000 --- a/src/rust-http-client +++ b/src/rust-http-client @@ -1 +1 @@ -Subproject commit bbf4b170fd4b2b90d73f0187aa330a14e4c2a043 +Subproject commit db00f7d1feb0ff2ad2989d98ff152702d4638c04 diff --git a/src/rust-hubbub b/src/rust-hubbub index b47a97ba3bb..f0aebb8ba52 160000 --- a/src/rust-hubbub +++ b/src/rust-hubbub @@ -1 +1 @@ -Subproject commit b47a97ba3bb7944cef026ad7e740c34899271b86 +Subproject commit f0aebb8ba525cd39227e1fe0ca8c2119ddac3f29 diff --git a/src/rust-netsurfcss b/src/rust-netsurfcss index 2925080706f..5cde7b87ad4 160000 --- a/src/rust-netsurfcss +++ b/src/rust-netsurfcss @@ -1 +1 @@ -Subproject commit 2925080706fbf9e600ce96e751ea74e367034712 +Subproject commit 5cde7b87ad4168a13d89077b2670c0e156cf4b0a diff --git a/src/servo-gfx/geometry.rs b/src/servo-gfx/geometry.rs index 748c80d3391..d30456d938c 100644 --- a/src/servo-gfx/geometry.rs +++ b/src/servo-gfx/geometry.rs @@ -6,14 +6,14 @@ use num::{Num, from_int}; pub enum Au = i32; impl Au : Num { - pure fn add(other: &Au) -> Au { Au(*self + **other) } - pure fn sub(other: &Au) -> Au { Au(*self - **other) } - pure fn mul(other: &Au) -> Au { Au(*self * **other) } - pure fn div(other: &Au) -> Au { Au(*self / **other) } - pure fn modulo(other: &Au) -> Au { Au(*self % **other) } - pure fn neg() -> Au { Au(-*self) } + pure fn add(&self, other: &Au) -> Au { Au(**self + **other) } + pure fn sub(&self, other: &Au) -> Au { Au(**self - **other) } + pure fn mul(&self, other: &Au) -> Au { Au(**self * **other) } + pure fn div(&self, other: &Au) -> Au { Au(**self / **other) } + pure fn modulo(&self, other: &Au) -> Au { Au(**self % **other) } + pure fn neg(&self) -> Au { Au(-**self) } - pure fn to_int() -> int { *self as int } + pure fn to_int(&self) -> int { **self as int } static pure fn from_int(n: int) -> Au { Au((n & (i32::max_value as int)) as i32) diff --git a/src/servo-gfx/resource/image_cache_task.rs b/src/servo-gfx/resource/image_cache_task.rs index a0840918c0c..e3185bff188 100644 --- a/src/servo-gfx/resource/image_cache_task.rs +++ b/src/servo-gfx/resource/image_cache_task.rs @@ -323,7 +323,7 @@ impl ImageCache { let data = data_cell.take(); let to_cache = self.chan.clone(); let url_cell = Cell(copy url); - let decode = self.decoder_factory(); + let decode = (self.decoder_factory)(); do spawn |move url_cell, move decode, move data, move to_cache| { let url = url_cell.take(); diff --git a/src/servo/layout/box.rs b/src/servo/layout/box.rs index 67b4bc78edd..375bab1c538 100644 --- a/src/servo/layout/box.rs +++ b/src/servo/layout/box.rs @@ -147,13 +147,13 @@ impl RenderBox { } fn can_merge_with_box(@self, other: @RenderBox) -> bool { - assert !core::box::ptr_eq(self, other); + assert !core::managed::ptr_eq(self, other); match (self, other) { (@UnscannedTextBox(*), @UnscannedTextBox(*)) => { self.font_style() == other.font_style() }, - (@TextBox(_,d1), @TextBox(_,d2)) => { core::box::ptr_eq(d1.run, d2.run) } + (@TextBox(_,d1), @TextBox(_,d2)) => core::managed::ptr_eq(d1.run, d2.run), (_, _) => false } } diff --git a/src/servo/layout/flow.rs b/src/servo/layout/flow.rs index ec5d4bf3362..871d05f6fd5 100644 --- a/src/servo/layout/flow.rs +++ b/src/servo/layout/flow.rs @@ -224,7 +224,7 @@ impl FlowTree { impl FlowTree : tree::WriteMethods<@FlowContext> { - pure fn eq(a: &@FlowContext, b: &@FlowContext) -> bool { core::box::ptr_eq(*a, *b) } + pure fn eq(a: &@FlowContext, b: &@FlowContext) -> bool { core::managed::ptr_eq(*a, *b) } fn with_tree_fields(box: &@FlowContext, f: fn(&tree::Tree<@FlowContext>) -> R) -> R { f(&box.d().tree)