diff options
Diffstat (limited to 'src/servo/layout/base.rs')
-rw-r--r-- | src/servo/layout/base.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/servo/layout/base.rs b/src/servo/layout/base.rs index 1bde59b569b..b8a810a3d13 100644 --- a/src/servo/layout/base.rs +++ b/src/servo/layout/base.rs @@ -137,8 +137,8 @@ fn FlowContext(id: int, kind: FlowContextData, tree: tree::Tree<@FlowContext>) - } impl @FlowContext : cmp::Eq { - pure fn eq(&&other: @FlowContext) -> bool { box::ptr_eq(self, other) } - pure fn ne(&&other: @FlowContext) -> bool { !box::ptr_eq(self, other) } + pure fn eq(other: &@FlowContext) -> bool { box::ptr_eq(self, *other) } + pure fn ne(other: &@FlowContext) -> bool { !box::ptr_eq(self, *other) } } @@ -387,7 +387,7 @@ impl @RenderBox { bounds.size.height = runs[i].size().height; let glyph_run = make_glyph_run(&runs[i]); list.push(~dl::Glyphs(bounds, glyph_run)); - bounds.origin.y += bounds.size.height; + bounds.origin.y = bounds.origin.y.add(bounds.size.height); } return; |