Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-11-17 18:59:12 +01:00 committed by Martin Robinson
parent a5b85ec834
commit 1816d7750f

View file

@ -362,7 +362,7 @@ impl<'a> StyleStylesheetLoader for StylesheetLoader<'a> {
lock: &SharedRwLock,
media: Arc<Locked<MediaList>>,
supports: Option<ImportSupportsCondition>,
layer: Option<ImportLayer>,
layer: ImportLayer,
) -> Arc<Locked<ImportRule>> {
// Ensure the supports conditions for this @import are true, if not, refuse to load
if !supports.as_ref().map_or(true, |s| s.enabled) {