pub trait StylesheetOwner {
    // Required methods
    fn parser_inserted(&self) -> bool;
    fn referrer_policy(&self) -> Option<ReferrerPolicy>;
    fn increment_pending_loads_count(&self);
    fn load_finished(&self, successful: bool) -> Option<bool>;
    fn set_origin_clean(&self, origin_clean: bool);
}

Required Methods§

source

fn parser_inserted(&self) -> bool

Returns whether this element was inserted by the parser (i.e., it should trigger a document-load-blocking load).

source

fn referrer_policy(&self) -> Option<ReferrerPolicy>

Which referrer policy should loads triggered by this owner follow, or None for the default.

source

fn increment_pending_loads_count(&self)

Notes that a new load is pending to finish.

source

fn load_finished(&self, successful: bool) -> Option<bool>

Returns None if there are still pending loads, or whether any load has failed since the loads started.

source

fn set_origin_clean(&self, origin_clean: bool)

Sets origin_clean flag.

Implementors§