Use usize for canvas sizes.

This commit is contained in:
Ms2ger 2015-04-02 15:04:29 +02:00
parent 683749c999
commit 2951455d18

View file

@ -997,9 +997,9 @@ impl FragmentDisplayListBuilding for Fragment {
}
SpecificFragmentInfo::Canvas(ref canvas_fragment_info) => {
let width = canvas_fragment_info.replaced_image_fragment_info
.computed_inline_size.map_or(0, |w| to_px(w) as uint);
.computed_inline_size.map_or(0, |w| to_px(w) as usize);
let height = canvas_fragment_info.replaced_image_fragment_info
.computed_block_size.map_or(0, |h| to_px(h) as uint);
.computed_block_size.map_or(0, |h| to_px(h) as usize);
let (sender, receiver) = channel::<Vec<u8>>();
let canvas_data = match canvas_fragment_info.renderer {