diff options
author | Patrick Walton <pcwalton@mimiga.net> | 2012-10-04 11:02:53 -0700 |
---|---|---|
committer | Patrick Walton <pcwalton@mimiga.net> | 2012-10-04 15:28:10 -0700 |
commit | 994c47d22b0a3603978d4b6dcb8ffed72e65ac9a (patch) | |
tree | 6939083c1dd3a6cf070a92214573c95cdd1f1833 /src/servo/layout/flow.rs | |
parent | e105f3b5571f0cbfae3fc6a96938d4d039bb660d (diff) | |
download | servo-994c47d22b0a3603978d4b6dcb8ffed72e65ac9a.tar.gz servo-994c47d22b0a3603978d4b6dcb8ffed72e65ac9a.zip |
Update for language changes; remove pipe protocols.
Diffstat (limited to 'src/servo/layout/flow.rs')
-rw-r--r-- | src/servo/layout/flow.rs | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/servo/layout/flow.rs b/src/servo/layout/flow.rs index 992428b628c..abab04c44e5 100644 --- a/src/servo/layout/flow.rs +++ b/src/servo/layout/flow.rs @@ -181,8 +181,8 @@ impl FlowContext { _ => seed }, InlineFlow(*) => do self.inline().boxes.foldl(seed) |acc, box| { - if box.d().node == node { blk(acc, box) } - else { acc } + if box.d().node == node { blk(*acc, *box) } + else { *acc } }, _ => fail fmt!("Don't know how to iterate node's RenderBoxes for %?", self) } @@ -213,12 +213,12 @@ impl FlowContext { enum FlowTree { FlowTree } impl FlowTree : tree::ReadMethods<@FlowContext> { - fn each_child(ctx: @FlowContext, f: fn(&&@FlowContext) -> bool) { + fn each_child(ctx: @FlowContext, f: fn(&&box: @FlowContext) -> bool) { tree::each_child(self, ctx, f) } - fn with_tree_fields<R>(&&b: @FlowContext, f: fn(tree::Tree<@FlowContext>) -> R) -> R { - f(b.d().tree) + fn with_tree_fields<R>(&&box: @FlowContext, f: fn(tree::Tree<@FlowContext>) -> R) -> R { + f(box.d().tree) } } @@ -228,8 +228,8 @@ impl FlowTree : tree::WriteMethods<@FlowContext> { tree::add_child(self, parent, child) } - fn with_tree_fields<R>(&&b: @FlowContext, f: fn(tree::Tree<@FlowContext>) -> R) -> R { - f(b.d().tree) + fn with_tree_fields<R>(&&box: @FlowContext, f: fn(tree::Tree<@FlowContext>) -> R) -> R { + f(box.d().tree) } } @@ -259,7 +259,7 @@ impl FlowContext : BoxedDebugMethods { let repr = match *self { InlineFlow(*) => { let mut s = self.inline().boxes.foldl(~"InlineFlow(children=", |s, box| { - fmt!("%s %?", s, box.d().id) + fmt!("%s %?", *s, box.d().id) }); s += ~")"; s }, |