/* This Source Code Form is subject to the terms of the Mozilla Public *License,v.2.0.IfacopyoftheMPLwasnotdistributedwiththis
* file, You can obtain one at https://mozilla.org/MPL/2.0/. */
//! The stylesheet loader is the abstraction used to trigger network requests //! for `@import` rules.
usecrate::media_queries::MediaList; usecrate::parser::ParserContext; usecrate::shared_lock::{Locked, SharedRwLock}; usecrate::stylesheets::import_rule::{ImportLayer, ImportRule, ImportSupportsCondition}; usecrate::values::CssUrl; use cssparser::SourceLocation; use servo_arc::Arc;
/// The stylesheet loader is the abstraction used to trigger network requests /// for `@import` rules. pubtrait StylesheetLoader { /// Request a stylesheet after parsing a given `@import` rule, and return /// the constructed `@import` rule. fn request_stylesheet(
&self,
url: CssUrl,
location: SourceLocation,
context: &ParserContext,
lock: &SharedRwLock,
media: Arc<Locked<MediaList>>,
supports: Option<ImportSupportsCondition>,
layer: ImportLayer,
) -> Arc<Locked<ImportRule>>;
}
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.12 Sekunden
(vorverarbeitet am 2026-06-18)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.