pub trait CSSStyleSheetMethods<D: DomTypes> {
    // Required methods
    fn GetCssRules(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::CSSRuleList>>;
    fn InsertRule(
        &self,
        rule: DOMString,
        index: u32,
        _can_gc: CanGc,
    ) -> Fallible<u32>;
    fn DeleteRule(&self, index: u32, _can_gc: CanGc) -> Fallible<()>;
    fn ReplaceSync(&self, text: USVString) -> Fallible<()>;
    fn GetRules(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::CSSRuleList>>;
    fn AddRule(
        &self,
        selector: DOMString,
        style: DOMString,
        index: Option<u32>,
        _can_gc: CanGc,
    ) -> Fallible<i32>;
    fn RemoveRule(&self, index: u32, _can_gc: CanGc) -> Fallible<()>;
    fn Constructor(
        global: &D::Window,
        proto: Option<HandleObject<'_>>,
        can_gc: CanGc,
        options: &CSSStyleSheetInit<D>,
    ) -> DomRoot<D::CSSStyleSheet>;
}

Required Methods§

Source

fn GetCssRules(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::CSSRuleList>>

Source

fn InsertRule( &self, rule: DOMString, index: u32, _can_gc: CanGc, ) -> Fallible<u32>

Source

fn DeleteRule(&self, index: u32, _can_gc: CanGc) -> Fallible<()>

Source

fn ReplaceSync(&self, text: USVString) -> Fallible<()>

Source

fn GetRules(&self, _can_gc: CanGc) -> Fallible<DomRoot<D::CSSRuleList>>

Source

fn AddRule( &self, selector: DOMString, style: DOMString, index: Option<u32>, _can_gc: CanGc, ) -> Fallible<i32>

Source

fn RemoveRule(&self, index: u32, _can_gc: CanGc) -> Fallible<()>

Source

fn Constructor( global: &D::Window, proto: Option<HandleObject<'_>>, can_gc: CanGc, options: &CSSStyleSheetInit<D>, ) -> DomRoot<D::CSSStyleSheet>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§