mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Remove the dependency of parallel DOM traversal and style calculation on LayoutContext.
This commit is contained in:
parent
ebc5eb1b98
commit
bf1a7d243f
4 changed files with 145 additions and 99 deletions
|
@ -128,16 +128,6 @@ impl<'a> LayoutContext<'a> {
|
|||
self.cached_local_layout_context.font_context.borrow_mut()
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn applicable_declarations_cache(&self) -> RefMut<ApplicableDeclarationsCache> {
|
||||
self.local_context().applicable_declarations_cache.borrow_mut()
|
||||
}
|
||||
|
||||
#[inline(always)]
|
||||
pub fn style_sharing_candidate_cache(&self) -> RefMut<StyleSharingCandidateCache> {
|
||||
self.local_context().style_sharing_candidate_cache.borrow_mut()
|
||||
}
|
||||
|
||||
pub fn get_or_request_image(&self, url: Url, use_placeholder: UsePlaceholder)
|
||||
-> Option<Arc<Image>> {
|
||||
// See if the image is already available
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue