aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.rs
diff options
context:
space:
mode:
authorOriol Brufau <obrufau@igalia.com>2023-06-14 15:56:21 +0200
committerOriol Brufau <obrufau@igalia.com>2023-06-14 15:58:00 +0200
commitbc634be84a5a14d4e4d79db82bcf1784b611045c (patch)
tree57800960e3e74dfda1d0b2b6a1943453b65dc374 /components/script/stylesheet_loader.rs
parentf8235ab3fb29695cd3803532657f34f4323b9572 (diff)
downloadservo-bc634be84a5a14d4e4d79db82bcf1784b611045c.tar.gz
servo-bc634be84a5a14d4e4d79db82bcf1784b611045c.zip
Avoid assert failure when using @import
Diffstat (limited to 'components/script/stylesheet_loader.rs')
-rw-r--r--components/script/stylesheet_loader.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs
index 9657227f91a..b7f47b1fcfd 100644
--- a/components/script/stylesheet_loader.rs
+++ b/components/script/stylesheet_loader.rs
@@ -361,7 +361,7 @@ impl<'a> StyleStylesheetLoader for StylesheetLoader<'a> {
layer: Option<ImportLayer>,
) -> Arc<Locked<ImportRule>> {
let sheet = Arc::new(Stylesheet {
- contents: StylesheetContents::from_shared_data(
+ contents: StylesheetContents::from_data(
CssRules::new(Vec::new(), lock),
context.stylesheet_origin,
context.url_data.clone(),