Upgrade Stylo to 2025-11-01 (#40522)

This continues #39612

Changelog:
- Upstream:
b98470a5cb...d71fd89b78
- Servo fixups:
4714bab122...7481d7f7af

Stylo tracking issue: https://github.com/servo/stylo/issues/264

---------

Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
Oriol Brufau
2025-11-11 11:59:38 +09:00
committed by GitHub
parent 6bce35f93a
commit 1d0a8b05fb
22 changed files with 128 additions and 134 deletions

View File

@@ -12,7 +12,6 @@ use net_traits::ReferrerPolicy;
use script_bindings::root::Dom;
use servo_arc::Arc;
use style::media_queries::MediaList as StyleMediaList;
use style::shared_lock::DeepCloneWithLock;
use style::stylesheets::{
AllowImportRules, Origin, Stylesheet, StylesheetContents, StylesheetInDocument, UrlExtraData,
};
@@ -252,11 +251,11 @@ impl HTMLStyleElement {
let lock = stylesheet_with_shared_contents.shared_lock.clone();
let guard = stylesheet_with_shared_contents.shared_lock.read();
let stylesheet_with_owned_contents = Arc::new(Stylesheet {
contents: lock.wrap(Arc::new(
contents: lock.wrap(
stylesheet_with_shared_contents
.contents(&guard)
.deep_clone_with_lock(&lock, &guard),
)),
.deep_clone(&lock, None, &guard),
),
shared_lock: lock,
media: stylesheet_with_shared_contents.media.clone(),
disabled: AtomicBool::new(