Struct chrome_remote_interface_model::css::StyleSheetAddedEvent[][src]

pub struct StyleSheetAddedEvent { /* fields omitted */ }
This is supported on crate features experimental and CSS and DOM and Page only.

Fired whenever an active document stylesheet is added.

Implementations

impl StyleSheetAddedEvent[src]

pub fn new(header: CssStyleSheetHeader) -> Self[src]

pub fn header(&self) -> &CssStyleSheetHeader[src]

Added stylesheet metainfo.

Methods from Deref<Target = CssStyleSheetHeader>

pub fn style_sheet_id(&self) -> &StyleSheetId[src]

The stylesheet identifier.

pub fn frame_id(&self) -> &FrameId[src]

Owner frame identifier.

pub fn source_url(&self) -> &str[src]

Stylesheet resource URL.

pub fn source_map_url(&self) -> Option<&String>[src]

URL of source map associated with the stylesheet (if any).

pub fn origin(&self) -> &StyleSheetOrigin[src]

Stylesheet origin.

pub fn title(&self) -> &str[src]

Stylesheet title.

pub fn owner_node(&self) -> Option<&BackendNodeId>[src]

The backend id for the owner node of the stylesheet.

pub fn disabled(&self) -> bool[src]

Denotes whether the stylesheet is disabled.

pub fn has_source_url(&self) -> Option<&bool>[src]

Whether the sourceURL field value comes from the sourceURL comment.

pub fn is_inline(&self) -> bool[src]

Whether this stylesheet is created for STYLE tag by parser. This flag is not set for document.written STYLE tags.

pub fn is_mutable(&self) -> bool[src]

Whether this stylesheet is mutable. Inline stylesheets become mutable after they have been modified via CSSOM API.

element's stylesheets become mutable only if DevTools modifies them. Constructed stylesheets (new CSSStyleSheet()) are mutable immediately after creation.

pub fn is_constructed(&self) -> bool[src]

Whether this stylesheet is a constructed stylesheet (created using new CSSStyleSheet()).

pub fn start_line(&self) -> f64[src]

Line offset of the stylesheet within the resource (zero based).

pub fn start_column(&self) -> f64[src]

Column offset of the stylesheet within the resource (zero based).

pub fn length(&self) -> f64[src]

Size of the content (in characters).

pub fn end_line(&self) -> f64[src]

Line offset of the end of the stylesheet within the resource (zero based).

pub fn end_column(&self) -> f64[src]

Column offset of the end of the stylesheet within the resource (zero based).

Trait Implementations

impl Clone for StyleSheetAddedEvent[src]

impl Debug for StyleSheetAddedEvent[src]

impl Deref for StyleSheetAddedEvent[src]

type Target = CssStyleSheetHeader

The resulting type after dereferencing.

impl<'de> Deserialize<'de> for StyleSheetAddedEvent[src]

impl Serialize for StyleSheetAddedEvent[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.