mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Use usize for canvas sizes.
This commit is contained in:
parent
683749c999
commit
2951455d18
1 changed files with 2 additions and 2 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue