diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-02-11 10:20:42 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 10:17:47 +0200 |
commit | e9f0e76d3c53888683fca4c9330f4b5884238f01 (patch) | |
tree | f96d66cd36d45fef71bc93f4f9a3b8b4745a8ecf /components/script/dom/documentorshadowroot.rs | |
parent | 23b92d54d48274f4e80521c427a959cfd4cb646c (diff) | |
download | servo-e9f0e76d3c53888683fca4c9330f4b5884238f01.tar.gz servo-e9f0e76d3c53888683fca4c9330f4b5884238f01.zip |
Implement TShadowRoot::style_data
Diffstat (limited to 'components/script/dom/documentorshadowroot.rs')
-rw-r--r-- | components/script/dom/documentorshadowroot.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/components/script/dom/documentorshadowroot.rs b/components/script/dom/documentorshadowroot.rs index 577df4bfd51..80b0e0022ba 100644 --- a/components/script/dom/documentorshadowroot.rs +++ b/components/script/dom/documentorshadowroot.rs @@ -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) |