Struct style::rule_tree::StrongRuleNode
[−]
[src]
pub struct StrongRuleNode { /* fields omitted */ }
A strong reference to a rule node.
Methods
impl StrongRuleNode
[src]
pub fn ptr(&self) -> *mut RuleNode
[src]
Raw pointer to the RuleNode
pub fn style_source(&self) -> &StyleSource
[src]
Get the style source corresponding to this rule node. May return None
if it's the root node, which means that the node hasn't matched any
rules.
pub fn cascade_level(&self) -> CascadeLevel
[src]
The cascade level for this node
pub fn importance(&self) -> Importance
[src]
Get the importance that this rule node represents.
ⓘImportant traits for SelfAndAncestors<'a>pub fn self_and_ancestors(&self) -> SelfAndAncestors
[src]
Get an iterator for this rule node and its ancestors.
pub unsafe fn has_children_for_testing(&self) -> bool
[src]
Returns whether this node has any child, only intended for testing purposes, and called on a single-threaded fashion only.
pub fn has_animation_or_transition_rules(&self) -> bool
[src]
Returns true if there is either animation or transition level rule.
pub fn get_properties_overriding_animations(
&self,
guards: &StylesheetGuards
) -> (LonghandIdSet, bool)
[src]
&self,
guards: &StylesheetGuards
) -> (LonghandIdSet, bool)
Get a set of properties whose CascadeLevel are higher than Animations but not equal to Transitions.
If there are any custom properties, we set the boolean value of the returned tuple to true.
pub fn get_smil_animation_rule(
&self
) -> Option<&Arc<Locked<PropertyDeclarationBlock>>>
[src]
&self
) -> Option<&Arc<Locked<PropertyDeclarationBlock>>>
Returns SMIL override declaration block if exists.
Trait Implementations
impl Debug for StrongRuleNode
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for StrongRuleNode
[src]
impl Hash for StrongRuleNode
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for StrongRuleNode
[src]
fn eq(&self, __arg_0: &StrongRuleNode) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &StrongRuleNode) -> bool
[src]
This method tests for !=
.
impl MallocSizeOf for StrongRuleNode
fn size_of(&self, _: &mut MallocSizeOfOps) -> usize
Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more
impl Clone for StrongRuleNode
[src]
fn clone(&self) -> Self
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more