Trait script::stylesheet_loader::StylesheetOwner
source · pub trait StylesheetOwner {
// Required methods
fn parser_inserted(&self) -> bool;
fn referrer_policy(&self) -> 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§
sourcefn parser_inserted(&self) -> bool
fn parser_inserted(&self) -> bool
Returns whether this element was inserted by the parser (i.e., it should trigger a document-load-blocking load).
sourcefn referrer_policy(&self) -> ReferrerPolicy
fn referrer_policy(&self) -> ReferrerPolicy
Which referrer policy should loads triggered by this owner follow
sourcefn increment_pending_loads_count(&self)
fn increment_pending_loads_count(&self)
Notes that a new load is pending to finish.
sourcefn load_finished(&self, successful: bool) -> Option<bool>
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.
sourcefn set_origin_clean(&self, origin_clean: bool)
fn set_origin_clean(&self, origin_clean: bool)
Sets origin_clean flag.