diff options
author | bors-servo <infra@servo.org> | 2023-06-14 18:42:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-14 18:42:59 +0200 |
commit | fa266abd29688833e1ffa5995230e5a6c30161f6 (patch) | |
tree | 57800960e3e74dfda1d0b2b6a1943453b65dc374 /components/script/dom | |
parent | f8235ab3fb29695cd3803532657f34f4323b9572 (diff) | |
parent | bc634be84a5a14d4e4d79db82bcf1784b611045c (diff) | |
download | servo-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/dom')
-rw-r--r-- | components/script/dom/htmlmetaelement.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/htmlmetaelement.rs b/components/script/dom/htmlmetaelement.rs index a6be8e1747b..74a6400fdca 100644 --- a/components/script/dom/htmlmetaelement.rs +++ b/components/script/dom/htmlmetaelement.rs @@ -114,7 +114,7 @@ impl HTMLMetaElement { let shared_lock = document.style_shared_lock(); let rule = CssRule::Viewport(Arc::new(shared_lock.wrap(translated_rule))); let sheet = Arc::new(Stylesheet { - contents: StylesheetContents::from_shared_data( + contents: StylesheetContents::from_data( CssRules::new(vec![rule], shared_lock), Origin::Author, window_from_node(self).get_url(), |