diff options
-rw-r--r-- | components/script/dom/bindings/trace.rs | 2 | ||||
-rw-r--r-- | components/script/dom/stylesheetlist.rs | 3 |
2 files changed, 2 insertions, 3 deletions
diff --git a/components/script/dom/bindings/trace.rs b/components/script/dom/bindings/trace.rs index 2d568208b69..56805e4d9fe 100644 --- a/components/script/dom/bindings/trace.rs +++ b/components/script/dom/bindings/trace.rs @@ -39,7 +39,6 @@ use crate::dom::bindings::utils::WindowProxyHandler; use crate::dom::document::PendingRestyle; use crate::dom::htmlimageelement::SourceSet; use crate::dom::htmlmediaelement::{HTMLMediaElementFetchContext, MediaFrameRenderer}; -use crate::dom::stylesheetlist::StyleSheetListOwner; use crate::task::TaskBox; use app_units::Au; use canvas_traits::canvas::{ @@ -500,7 +499,6 @@ unsafe_no_jsmanaged_fields!(HTMLMediaElementFetchContext); unsafe_no_jsmanaged_fields!(Rotation3D<f64>, Transform2D<f32>, Transform3D<f64>); unsafe_no_jsmanaged_fields!(Point2D<f32>, Vector2D<f32>, Rect<Au>); unsafe_no_jsmanaged_fields!(Rect<f32>, RigidTransform3D<f64>); -unsafe_no_jsmanaged_fields!(StyleSheetListOwner); unsafe_no_jsmanaged_fields!(CascadeData); unsafe impl<'a> JSTraceable for &'a str { 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>); |