From 60e206143c7346b2255c9c1a6af745d4b0c77985 Mon Sep 17 00:00:00 2001 From: Oriol Brufau Date: Fri, 12 May 2023 19:35:00 +0200 Subject: Further changes required by Servo --- components/layout_thread/lib.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'components/layout_thread/lib.rs') diff --git a/components/layout_thread/lib.rs b/components/layout_thread/lib.rs index bf4ff1b85bc..1e8bd2848be 100644 --- a/components/layout_thread/lib.rs +++ b/components/layout_thread/lib.rs @@ -96,7 +96,7 @@ use std::time::Duration; use style::animation::{AnimationSetKey, DocumentAnimationSet, ElementAnimationSet}; use style::context::SharedStyleContext; use style::context::{QuirksMode, RegisteredSpeculativePainter, RegisteredSpeculativePainters}; -use style::dom::{ShowSubtree, ShowSubtreeDataAndPrimaryValues, TDocument, TElement, TNode}; +use style::dom::{ShowSubtree, ShowSubtreeDataAndPrimaryValues, TElement, TNode}; use style::driver; use style::error_reporting::RustLogReporter; use style::global_style_data::{GLOBAL_STYLE_DATA, STYLE_THREAD_POOL}; @@ -1285,11 +1285,7 @@ impl LayoutThread { ); // Flush shadow roots stylesheets if dirty. - document.flush_shadow_roots_stylesheets( - &self.stylist.device(), - document.quirks_mode(), - guards.author.clone(), - ); + document.flush_shadow_roots_stylesheets(&mut self.stylist, guards.author.clone()); let restyles = std::mem::take(&mut data.pending_restyles); debug!("Draining restyles: {}", restyles.len()); -- cgit v1.2.3