mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Un-boxed ScriptReflow
This commit is contained in:
parent
d8cb2762af
commit
aebf87cf5b
3 changed files with 3 additions and 3 deletions
|
@ -593,7 +593,7 @@ impl LayoutTask {
|
||||||
profile(time::ProfilerCategory::LayoutPerform,
|
profile(time::ProfilerCategory::LayoutPerform,
|
||||||
self.profiler_metadata(),
|
self.profiler_metadata(),
|
||||||
self.time_profiler_chan.clone(),
|
self.time_profiler_chan.clone(),
|
||||||
|| self.handle_reflow(&*data, possibly_locked_rw_data));
|
|| self.handle_reflow(&data, possibly_locked_rw_data));
|
||||||
},
|
},
|
||||||
Msg::TickAnimations => self.tick_all_animations(possibly_locked_rw_data),
|
Msg::TickAnimations => self.tick_all_animations(possibly_locked_rw_data),
|
||||||
Msg::ReflowWithNewlyLoadedWebFont => {
|
Msg::ReflowWithNewlyLoadedWebFont => {
|
||||||
|
|
|
@ -910,7 +910,7 @@ impl Window {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send new document and relevant styles to layout.
|
// Send new document and relevant styles to layout.
|
||||||
let reflow = box ScriptReflow {
|
let reflow = ScriptReflow {
|
||||||
reflow_info: Reflow {
|
reflow_info: Reflow {
|
||||||
goal: goal,
|
goal: goal,
|
||||||
page_clip_rect: self.page_clip_rect.get(),
|
page_clip_rect: self.page_clip_rect.get(),
|
||||||
|
|
|
@ -47,7 +47,7 @@ pub enum Msg {
|
||||||
SetQuirksMode,
|
SetQuirksMode,
|
||||||
|
|
||||||
/// Requests a reflow.
|
/// Requests a reflow.
|
||||||
Reflow(Box<ScriptReflow>),
|
Reflow(ScriptReflow),
|
||||||
|
|
||||||
/// Get an RPC interface.
|
/// Get an RPC interface.
|
||||||
GetRPC(Sender<Box<LayoutRPC + Send>>),
|
GetRPC(Sender<Box<LayoutRPC + Send>>),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue