mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
script: Implement CSSStyleSheet constructor (#36521)
https://drafts.csswg.org/cssom/#dom-cssstylesheet-cssstylesheet Testing: covered by WPT This is part of #36162 Signed-off-by: Oriol Brufau <obrufau@igalia.com>
This commit is contained in:
parent
372fd04b23
commit
10f6f50c61
11 changed files with 127 additions and 38 deletions
|
@ -106,6 +106,11 @@ impl MediaList {
|
|||
);
|
||||
MediaQuery::parse(&context, &mut parser)
|
||||
}
|
||||
|
||||
pub(crate) fn clone_media_list(&self) -> StyleMediaList {
|
||||
let guard = self.shared_lock().read();
|
||||
self.media_queries.read_with(&guard).clone()
|
||||
}
|
||||
}
|
||||
|
||||
impl MediaListMethods<crate::DomTypeHolder> for MediaList {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue