aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/stylesheetlist.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-02-21 13:38:11 +0100
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2019-04-26 11:31:17 +0200
commit3dd38151d4bb446864904428f03af23cc30684fb (patch)
treeb15e6ff6c4fec5c0e51a6e058d0cae372523be02 /components/script/dom/stylesheetlist.rs
parent3ccd622c9b94930ce43ca1bfb5d101783b367d58 (diff)
downloadservo-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.rs3
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>);