mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
layout_thread: Avoid adding the UA sheets multiple times when there's no root flow.
Fixes #18631
This commit is contained in:
parent
dd27ec1fa2
commit
8976b1aeab
3 changed files with 27 additions and 2 deletions
|
@ -1318,6 +1318,7 @@ impl LayoutThread {
|
|||
&mut layout_context);
|
||||
}
|
||||
|
||||
self.first_reflow.set(false);
|
||||
self.respond_to_query_if_necessary(&data.reflow_goal,
|
||||
&mut *rw_data,
|
||||
&mut layout_context,
|
||||
|
@ -1618,8 +1619,6 @@ impl LayoutThread {
|
|||
&mut *layout_context,
|
||||
rw_data);
|
||||
|
||||
self.first_reflow.set(false);
|
||||
|
||||
if opts::get().trace_layout {
|
||||
layout_debug::end_trace(self.generation.get());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue