Type Alias style::stylesheets::EffectiveRulesIterator
source · pub type EffectiveRulesIterator<'a, 'b> = RulesIterator<'a, 'b, EffectiveRules>;
Expand description
An iterator over all the effective rules of a stylesheet.
NOTE: This iterator recurses into @import
rules.
Aliased Type§
struct EffectiveRulesIterator<'a, 'b> {
device: &'a Device,
quirks_mode: QuirksMode,
guard: &'a SharedRwLockReadGuard<'b>,
stack: SmallVec<[Iter<'a, CssRule>; 3]>,
_phantom: PhantomData<EffectiveRules>,
}
Fields§
§device: &'a Device
§quirks_mode: QuirksMode
§guard: &'a SharedRwLockReadGuard<'b>
§stack: SmallVec<[Iter<'a, CssRule>; 3]>
§_phantom: PhantomData<EffectiveRules>
Implementations§
source§impl<'a, 'b> EffectiveRulesIterator<'a, 'b>
impl<'a, 'b> EffectiveRulesIterator<'a, 'b>
sourcepub fn effective_children(
device: &'a Device,
quirks_mode: QuirksMode,
guard: &'a SharedRwLockReadGuard<'b>,
rule: &'a CssRule,
) -> Self
pub fn effective_children( device: &'a Device, quirks_mode: QuirksMode, guard: &'a SharedRwLockReadGuard<'b>, rule: &'a CssRule, ) -> Self
Returns an iterator over the effective children of a rule, even if
rule
itself is not effective.