aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_thread/lib.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-05-12 19:35:00 +0200
committerOriol Brufau <obrufau@igalia.com>2023-05-16 13:00:18 +0200
commit60e206143c7346b2255c9c1a6af745d4b0c77985 (patch)
tree8338dbe12d82a692c61738db3bdc26120e6a7d59 /components/layout_thread/lib.rs
parent060d74ba3bcccf8ace74ac8d00c7589783a2a45d (diff)
downloadservo-60e206143c7346b2255c9c1a6af745d4b0c77985.tar.gz
servo-60e206143c7346b2255c9c1a6af745d4b0c77985.zip
Further changes required by Servo
Diffstat (limited to 'components/layout_thread/lib.rs')
-rw-r--r--components/layout_thread/lib.rs8
1 files changed, 2 insertions, 6 deletions
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());