/* 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/. */
//! A style rule.
usecrate::properties::PropertyDeclarationBlock; usecrate::selector_parser::SelectorImpl; usecrate::shared_lock::{
DeepCloneWithLock, Locked, SharedRwLock, SharedRwLockReadGuard, ToCssWithGuard,
}; usecrate::str::CssStringWriter; usecrate::stylesheets::{CssRules, style_or_page_rule_to_css}; use cssparser::SourceLocation; #[cfg(feature = "gecko")] use malloc_size_of::{
MallocSizeOf, MallocSizeOfOps, MallocUnconditionalShallowSizeOf, MallocUnconditionalSizeOf,
}; use selectors::SelectorList; use servo_arc::Arc; use std::fmt::{self, Write};
/// A style rule, with selectors and declarations. #[derive(Debug, ToShmem)] pubstruct StyleRule { /// The list of selectors in this rule. pub selectors: SelectorList<SelectorImpl>, /// The declaration block with the properties it contains. pub block: Arc<Locked<PropertyDeclarationBlock>>, /// The nested rules to this style rule. Only non-`None` when nesting is enabled. pub rules: Option<Arc<Locked<CssRules>>>, /// The location in the sheet where it was found. pub source_location: SourceLocation,
}
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.