mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Wrap SharedLayoutContext::stylist in a wrapper to make it Sync.
This commit is contained in:
parent
e9b77628ce
commit
647232a495
3 changed files with 10 additions and 5 deletions
|
@ -12,7 +12,7 @@ use app_units::Au;
|
|||
use azure::azure::AzColor;
|
||||
use canvas_traits::CanvasMsg;
|
||||
use construct::ConstructionResult;
|
||||
use context::{SharedLayoutContext, heap_size_of_local_context};
|
||||
use context::{SharedLayoutContext, StylistWrapper, heap_size_of_local_context};
|
||||
use cssparser::ToCss;
|
||||
use data::LayoutDataWrapper;
|
||||
use display_list_builder::ToGfxColor;
|
||||
|
@ -457,7 +457,7 @@ impl LayoutTask {
|
|||
screen_size_changed: screen_size_changed,
|
||||
font_cache_task: Mutex::new(self.font_cache_task.clone()),
|
||||
canvas_layers_sender: Mutex::new(self.canvas_layers_sender.clone()),
|
||||
stylist: &*rw_data.stylist,
|
||||
stylist: StylistWrapper(&*rw_data.stylist),
|
||||
url: (*url).clone(),
|
||||
visible_rects: rw_data.visible_rects.clone(),
|
||||
generation: rw_data.generation,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue