Skip to main content

CSSStyleDeclarationMethods

Trait CSSStyleDeclarationMethods 

Source
pub trait CSSStyleDeclarationMethods<D>
where D: DomTypes,
{ // Required methods fn CssText(&self, cx: &NoGC) -> DOMString; fn SetCssText( &self, cx: &mut JSContext, value: DOMString, ) -> Result<(), Error>; fn Length(&self, cx: &NoGC) -> u32; fn Item(&self, cx: &NoGC, index: u32) -> DOMString; fn GetPropertyValue(&self, cx: &NoGC, property: DOMString) -> DOMString; fn GetPropertyPriority(&self, property: DOMString) -> DOMString; fn SetProperty( &self, cx: &mut JSContext, property: DOMString, value: DOMString, priority: DOMString, ) -> Result<(), Error>; fn RemoveProperty( &self, cx: &mut JSContext, property: DOMString, ) -> Result<DOMString, Error>; fn GetParentRule( &self, cx: &NoGC, ) -> Option<Root<Dom<<D as DomTypes>::CSSRule>>>; fn IndexedGetter(&self, cx: &NoGC, index: u32) -> Option<DOMString>; }

Required Methods§

Source

fn CssText(&self, cx: &NoGC) -> DOMString

Source

fn SetCssText(&self, cx: &mut JSContext, value: DOMString) -> Result<(), Error>

Source

fn Length(&self, cx: &NoGC) -> u32

Source

fn Item(&self, cx: &NoGC, index: u32) -> DOMString

Source

fn GetPropertyValue(&self, cx: &NoGC, property: DOMString) -> DOMString

Source

fn GetPropertyPriority(&self, property: DOMString) -> DOMString

Source

fn SetProperty( &self, cx: &mut JSContext, property: DOMString, value: DOMString, priority: DOMString, ) -> Result<(), Error>

Source

fn RemoveProperty( &self, cx: &mut JSContext, property: DOMString, ) -> Result<DOMString, Error>

Source

fn GetParentRule( &self, cx: &NoGC, ) -> Option<Root<Dom<<D as DomTypes>::CSSRule>>>

Source

fn IndexedGetter(&self, cx: &NoGC, index: u32) -> Option<DOMString>

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§