layout: Store image dimensions inside image boxes instead of going to

the DOM for them.
This commit is contained in:
Patrick Walton 2013-12-12 17:51:31 -08:00
parent 7b3c3542a3
commit dc8504fd12
3 changed files with 35 additions and 49 deletions

View file

@ -209,7 +209,7 @@ impl<'self> FlowConstructor<'self> {
Some(url) => {
// FIXME(pcwalton): The fact that image boxes store the cache within them makes
// little sense to me.
Some(ImageBoxInfo::new(url, self.layout_context.image_cache.clone()))
Some(ImageBoxInfo::new(&node, url, self.layout_context.image_cache.clone()))
}
}
}