Use usize rather than u64 in MemoryReport.

I should have used usize in the first place.
This commit is contained in:
Nicholas Nethercote 2015-03-26 19:15:59 -07:00 committed by Ms2ger
parent c1cc31b9d6
commit 66902d2c90
4 changed files with 43 additions and 44 deletions

View file

@ -480,7 +480,7 @@ impl LayoutTask {
let stacking_context = rw_data.stacking_context.as_ref();
reports.push(Report {
path: path!["pages", format!("url({})", self.url), "display-list"],
size: stacking_context.map_or(0, |sc| sc.heap_size_of_children() as u64),
size: stacking_context.map_or(0, |sc| sc.heap_size_of_children()),
});
reports_chan.send(reports);