diff options
author | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-02-21 13:38:11 +0100 |
---|---|---|
committer | Fernando Jiménez Moreno <ferjmoreno@gmail.com> | 2019-04-26 11:31:17 +0200 |
commit | 3dd38151d4bb446864904428f03af23cc30684fb (patch) | |
tree | b15e6ff6c4fec5c0e51a6e058d0cae372523be02 /components/script/dom/stylesheetlist.rs | |
parent | 3ccd622c9b94930ce43ca1bfb5d101783b367d58 (diff) | |
download | servo-3dd38151d4bb446864904428f03af23cc30684fb.tar.gz servo-3dd38151d4bb446864904428f03af23cc30684fb.zip |
Make StyleSheetListOwner implement JSTraceable
Diffstat (limited to 'components/script/dom/stylesheetlist.rs')
-rw-r--r-- | components/script/dom/stylesheetlist.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/components/script/dom/stylesheetlist.rs b/components/script/dom/stylesheetlist.rs index b87d7957dfb..930af55ae14 100644 --- a/components/script/dom/stylesheetlist.rs +++ b/components/script/dom/stylesheetlist.rs @@ -6,6 +6,7 @@ use crate::dom::bindings::codegen::Bindings::StyleSheetListBinding; use crate::dom::bindings::codegen::Bindings::StyleSheetListBinding::StyleSheetListMethods; use crate::dom::bindings::reflector::{reflect_dom_object, Reflector}; use crate::dom::bindings::root::DomRoot; +use crate::dom::bindings::trace::JSTraceable; use crate::dom::cssstylesheet::CSSStyleSheet; use crate::dom::element::Element; use crate::dom::stylesheet::StyleSheet; @@ -14,7 +15,7 @@ use dom_struct::dom_struct; use servo_arc::Arc; use style::stylesheets::Stylesheet; -pub trait StyleSheetListOwner { +pub trait StyleSheetListOwner: JSTraceable { fn stylesheet_count(&self) -> usize; fn stylesheet_at(&self, index: usize) -> Option<DomRoot<CSSStyleSheet>>; fn add_stylesheet(&self, owner: &Element, sheet: Arc<Stylesheet>); |