mirror of
https://github.com/servo/servo
synced 2026-04-28 10:27:40 +02:00
Avoid assert failure when using @import
This commit is contained in:
@@ -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(),
|
||||
|
||||
Reference in New Issue
Block a user