mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement TShadowRoot::style_data
This commit is contained in:
parent
23b92d54d4
commit
e9f0e76d3c
3 changed files with 32 additions and 3 deletions
|
@ -18,6 +18,7 @@ use script_traits::UntrustedNodeAddress;
|
|||
use servo_arc::Arc;
|
||||
use std::fmt;
|
||||
use style::context::QuirksMode;
|
||||
use style::invalidation::media_queries::{MediaListKey, ToMediaListKey};
|
||||
use style::media_queries::MediaList;
|
||||
use style::shared_lock::{SharedRwLock as StyleSharedRwLock, SharedRwLockReadGuard};
|
||||
use style::stylesheet_set::StylesheetSet;
|
||||
|
@ -43,6 +44,12 @@ impl PartialEq for StyleSheetInDocument {
|
|||
}
|
||||
}
|
||||
|
||||
impl ToMediaListKey for StyleSheetInDocument {
|
||||
fn to_media_list_key(&self) -> MediaListKey {
|
||||
self.sheet.to_media_list_key()
|
||||
}
|
||||
}
|
||||
|
||||
impl ::style::stylesheets::StylesheetInDocument for StyleSheetInDocument {
|
||||
fn origin(&self, guard: &SharedRwLockReadGuard) -> Origin {
|
||||
self.sheet.origin(guard)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue