aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/script_thread.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/script_thread.rs')
-rw-r--r--components/script/script_thread.rs11
1 files changed, 1 insertions, 10 deletions
diff --git a/components/script/script_thread.rs b/components/script/script_thread.rs
index cb6be4e9be0..4a2a76aa731 100644
--- a/components/script/script_thread.rs
+++ b/components/script/script_thread.rs
@@ -1371,12 +1371,7 @@ impl ScriptThread {
fn handle_thaw_msg(&self, id: PipelineId) {
let document = self.documents.borrow().find_document(id);
if let Some(document) = document {
- if let Some(context) = document.browsing_context() {
- let needed_reflow = context.set_reflow_status(false);
- if needed_reflow {
- self.rebuild_and_force_reflow(&document, ReflowReason::CachedPageNeededReflow);
- }
- }
+ self.rebuild_and_force_reflow(&document, ReflowReason::CachedPageNeededReflow);
document.window().thaw();
document.fully_activate();
return;
@@ -1451,7 +1446,6 @@ impl ScriptThread {
let window = self.documents.borrow().find_window(id)
.expect("ScriptThread: received a resize msg for a pipeline not in this script thread. This is a bug.");
window.set_window_size(new_size);
- window.browsing_context().set_reflow_status(true);
}
/// We have gotten a window.close from script, which we pass on to the compositor.
@@ -2188,9 +2182,6 @@ impl ScriptThread {
let window = window_from_node(&*document);
window.reflow(ReflowGoal::ForDisplay, ReflowQueryType::NoQuery, ReflowReason::FirstLoad);
- // No more reflow required
- window.browsing_context().set_reflow_status(false);
-
// https://html.spec.whatwg.org/multipage/#the-end steps 3-4.
document.process_deferred_scripts();
}