mirror of
https://github.com/servo/servo.git
synced 2025-06-18 22:34:30 +01:00
Convert LayoutContext.image_cache from @mut to MutexArc
LocalImageCache isn't Freeze so we have to use unsafe_access, which exists for MutexArc and not RWArc.
This commit is contained in:
parent
94b70e25e1
commit
dda6d2b53c
5 changed files with 30 additions and 14 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))
|
||||
Some(ImageBoxInfo::new(url, self.layout_context.image_cache.clone()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue