mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
layout: Store image dimensions inside image boxes instead of going to
the DOM for them.
This commit is contained in:
parent
7b3c3542a3
commit
dc8504fd12
3 changed files with 35 additions and 49 deletions
|
@ -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()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue