mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Auto merge of #8290 - itsmeolivia:store-script-reflow, r=Ms2ger
Un-boxed ScriptReflow As per #8238 I changed `layout_interface::Msg::Reflow` to store `ScriptReflow` rather than `Box<ScriptReflow>` I ran the tests and believe everything passed but this is my first commit to the project so sorry if I messed up the protocol! <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8290) <!-- Reviewable:end -->
This commit is contained in:
commit
601169c0e5
3 changed files with 3 additions and 3 deletions
|
@ -593,7 +593,7 @@ impl LayoutTask {
|
|||
profile(time::ProfilerCategory::LayoutPerform,
|
||||
self.profiler_metadata(),
|
||||
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::ReflowWithNewlyLoadedWebFont => {
|
||||
|
|
|
@ -910,7 +910,7 @@ impl Window {
|
|||
}
|
||||
|
||||
// Send new document and relevant styles to layout.
|
||||
let reflow = box ScriptReflow {
|
||||
let reflow = ScriptReflow {
|
||||
reflow_info: Reflow {
|
||||
goal: goal,
|
||||
page_clip_rect: self.page_clip_rect.get(),
|
||||
|
|
|
@ -47,7 +47,7 @@ pub enum Msg {
|
|||
SetQuirksMode,
|
||||
|
||||
/// Requests a reflow.
|
||||
Reflow(Box<ScriptReflow>),
|
||||
Reflow(ScriptReflow),
|
||||
|
||||
/// Get an RPC interface.
|
||||
GetRPC(Sender<Box<LayoutRPC + Send>>),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue