aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/stylesheet_loader.rs
diff options
context:
space:
mode:
authorbors-servo <infra@servo.org>2023-06-14 18:42:59 +0200
committerGitHub <noreply@github.com>2023-06-14 18:42:59 +0200
commitfa266abd29688833e1ffa5995230e5a6c30161f6 (patch)
tree57800960e3e74dfda1d0b2b6a1943453b65dc374 /components/script/stylesheet_loader.rs
parentf8235ab3fb29695cd3803532657f34f4323b9572 (diff)
parentbc634be84a5a14d4e4d79db82bcf1784b611045c (diff)
downloadservo-fa266abd29688833e1ffa5995230e5a6c30161f6.tar.gz
servo-fa266abd29688833e1ffa5995230e5a6c30161f6.zip
Auto merge of #29873 - Loirooriol:import-assert, r=mrobinson
Avoid assert failure when using @import <!-- Please describe your changes on the following line: --> --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #29872 <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they only affect debug builds, and tests run in release builds. <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
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(),