Trait style::stylesheets::StylesheetLoader
[−]
[src]
pub trait StylesheetLoader { fn request_stylesheet(
&self,
url: SpecifiedUrl,
location: SourceLocation,
context: &ParserContext,
lock: &SharedRwLock,
media: Arc<Locked<MediaList>>
) -> Arc<Locked<ImportRule>>; }
The stylesheet loader is the abstraction used to trigger network requests
for @import
rules.
Required Methods
fn request_stylesheet(
&self,
url: SpecifiedUrl,
location: SourceLocation,
context: &ParserContext,
lock: &SharedRwLock,
media: Arc<Locked<MediaList>>
) -> Arc<Locked<ImportRule>>
&self,
url: SpecifiedUrl,
location: SourceLocation,
context: &ParserContext,
lock: &SharedRwLock,
media: Arc<Locked<MediaList>>
) -> Arc<Locked<ImportRule>>
Request a stylesheet after parsing a given @import
rule, and return
the constructed @import
rule.