Switch Arc<Box<Image>> to Arc<Image> for perf boost.

Image used to be a trait, but no longer is, so boxing it is no longer
necessary.
This commit is contained in:
Aneesh Agrawal 2015-04-10 18:59:02 -04:00
parent a8b0fb1e79
commit 5b593a3d32
7 changed files with 13 additions and 13 deletions

View file

@ -414,7 +414,7 @@ impl FragmentDisplayListBuilding for Fragment {
// Use `background-size` to get the size.
let mut bounds = *absolute_bounds;
let image_size = self.compute_background_image_size(style, &bounds, &**image);
let image_size = self.compute_background_image_size(style, &bounds, &*image);
// Clip.
//
@ -1016,7 +1016,7 @@ impl FragmentDisplayListBuilding for Fragment {
&*self.style,
Cursor::DefaultCursor),
(*clip).clone()),
image: Arc::new(box png::Image {
image: Arc::new(png::Image {
width: width as u32,
height: height as u32,
pixels: PixelsByColorType::RGBA8(canvas_data),