Rollup merge of #7015 - mbrubeck:arc-box, r=Ms2ger

Replace Arc<Box<TextRun>> with Arc<TextRun>

Removes an extraneous level of indirection.

r? @pcwalton

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7015)
<!-- Reviewable:end -->
This commit is contained in:
Matt Brubeck 2015-08-06 14:07:32 -07:00
commit b5f9c06776
5 changed files with 10 additions and 10 deletions

View file

@ -276,7 +276,7 @@ impl TextRunScanner {
options.flags.insert(RTL_FLAG);
}
let mut font = fontgroup.fonts.get(run_info.font_index).unwrap().borrow_mut();
Arc::new(box TextRun::new(&mut *font, run_info.text, &options, run_info.bidi_level))
Arc::new(TextRun::new(&mut *font, run_info.text, &options, run_info.bidi_level))
}).collect::<Vec<_>>()
};