diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-01 21:21:35 +0200 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2017-10-01 23:05:58 +0200 |
commit | 8976b1aeab5c4b868b083c2cf6abd0f183aaeacc (patch) | |
tree | e494823da9be8e0f26651d7096859012910c2cfc /components/layout_thread/lib.rs | |
parent | dd27ec1fa2557f4172972e60a995903fa7ffa215 (diff) | |
download | servo-8976b1aeab5c4b868b083c2cf6abd0f183aaeacc.tar.gz servo-8976b1aeab5c4b868b083c2cf6abd0f183aaeacc.zip |
layout_thread: Avoid adding the UA sheets multiple times when there's no root flow.
Fixes #18631
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r-- | components/layout_thread/lib.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index 0b9eb75b8f4..1bfcf112c45 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -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()); } |