Struct style::invalidation::element::restyle_hints::RestyleHint []

pub struct RestyleHint { /* fields omitted */ }

The kind of restyle we need to do for a given element.

Methods

impl RestyleHint

RESTYLE_SELF: RestyleHint = RestyleHint{bits: 1 << 0,}

Do a selector match of the element.

RESTYLE_DESCENDANTS: RestyleHint = RestyleHint{bits: 1 << 1,}

Do a selector match of the element's descendants.

RECASCADE_SELF: RestyleHint = RestyleHint{bits: 1 << 2,}

Recascade the current element.

RECASCADE_DESCENDANTS: RestyleHint = RestyleHint{bits: 1 << 3,}

Recascade all descendant elements.

RESTYLE_CSS_TRANSITIONS: RestyleHint = RestyleHint{bits: 1 << 4,}

Replace the style data coming from CSS transitions without updating any other style data. This hint is only processed in animation-only traversal which is prior to normal traversal.

RESTYLE_CSS_ANIMATIONS: RestyleHint = RestyleHint{bits: 1 << 5,}

Replace the style data coming from CSS animations without updating any other style data. This hint is only processed in animation-only traversal which is prior to normal traversal.

RESTYLE_STYLE_ATTRIBUTE: RestyleHint = RestyleHint{bits: 1 << 6,}

Don't re-run selector-matching on the element, only the style attribute has changed, and this change didn't have any other dependencies.

RESTYLE_SMIL: RestyleHint = RestyleHint{bits: 1 << 7,}

Replace the style data coming from SMIL animations without updating any other style data. This hint is only processed in animation-only traversal which is prior to normal traversal.

Returns an empty set of flags.

Returns the set containing all flags.

Returns the raw value of the flags currently stored.

Convert from underlying bit representation, unless that representation contains bits that do not correspond to a flag.

Convert from underlying bit representation, dropping any bits that do not correspond to flags.

Returns true if no flags are currently stored.

Returns true if all flags are currently set.

Returns true if there are flags common to both self and other.

Returns true all of the flags in other are contained within self.

Inserts the specified flags in-place.

Removes the specified flags in-place.

Toggles the specified flags in-place.

Inserts or removes the specified flags depending on the passed value.

impl RestyleHint
[src]

[src]

Creates a new RestyleHint indicating that the current element and all its descendants must be fully restyled.

[src]

Creates a new RestyleHint indicating that the current element and all its descendants must be recascaded.

[src]

Returns whether this hint invalidates the element and all its descendants.

[src]

Returns whether we need to restyle this element.

[src]

Propagates this restyle hint to a child element.

[src]

Creates a new RestyleHint that indicates the element must be recascaded.

[src]

Returns a hint that contains all the replacement hints.

[src]

The replacements for the animation cascade levels.

[src]

Returns whether the hint specifies that the currently element must be recascaded.

[src]

Returns whether the hint specifies that an animation cascade level must be replaced.

[src]

Returns whether the hint specifies that an animation cascade level must be replaced.

[src]

Returns whether the hint specifies some restyle work other than an animation cascade level replacement.

[src]

Returns whether the hint specifies that selector matching must be re-run for the element.

[src]

Returns whether the hint specifies that some cascade levels must be replaced.

[src]

Removes all of the animation-related hints.

Trait Implementations

impl Copy for RestyleHint

impl PartialEq for RestyleHint

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for RestyleHint

impl Clone for RestyleHint

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialOrd for RestyleHint

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for RestyleHint

This method returns an Ordering between self and other. Read more

1.21.0
[src]

Compares and returns the maximum of two values. Read more

1.21.0
[src]

Compares and returns the minimum of two values. Read more

impl Hash for RestyleHint

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for RestyleHint

Formats the value using the given formatter. Read more

impl Binary for RestyleHint

Formats the value using the given formatter.

impl Octal for RestyleHint

Formats the value using the given formatter.

impl LowerHex for RestyleHint

Formats the value using the given formatter.

impl UpperHex for RestyleHint

Formats the value using the given formatter.

impl BitOr for RestyleHint

The resulting type after applying the | operator.

Returns the union of the two sets of flags.

impl BitOrAssign for RestyleHint

Adds the set of flags.

impl BitXor for RestyleHint

The resulting type after applying the ^ operator.

Returns the left flags, but with all the right flags toggled.

impl BitXorAssign for RestyleHint

Toggles the set of flags.

impl BitAnd for RestyleHint

The resulting type after applying the & operator.

Returns the intersection between the two sets of flags.

impl BitAndAssign for RestyleHint

Disables all flags disabled in the set.

impl Sub for RestyleHint

The resulting type after applying the - operator.

Returns the set difference of the two sets of flags.

impl SubAssign for RestyleHint

Disables all flags enabled in the set.

impl Not for RestyleHint

The resulting type after applying the ! operator.

Returns the complement of this set of flags.

impl Extend<RestyleHint> for RestyleHint

Extends a collection with the contents of an iterator. Read more

impl FromIterator<RestyleHint> for RestyleHint

Creates a value from an iterator. Read more

impl Default for RestyleHint
[src]

[src]

Returns the "default value" for a type. Read more

impl MallocSizeOf for RestyleHint

Measure the heap usage of all descendant heap-allocated structures, but not the space taken up by the value itself. Read more