diff --git a/components/script/stylesheet_loader.rs b/components/script/stylesheet_loader.rs index ab5b643f9b9..a017f5e1eb1 100644 --- a/components/script/stylesheet_loader.rs +++ b/components/script/stylesheet_loader.rs @@ -362,7 +362,7 @@ impl<'a> StyleStylesheetLoader for StylesheetLoader<'a> { lock: &SharedRwLock, media: Arc>, supports: Option, - layer: Option, + layer: ImportLayer, ) -> Arc> { // Ensure the supports conditions for this @import are true, if not, refuse to load if !supports.as_ref().map_or(true, |s| s.enabled) {