Enum style::servo::selector_parser::PseudoElement [] [src]

#[repr(usize)]
pub enum PseudoElement { After, Before, Selection, DetailsSummary, DetailsContent, ServoText, ServoInputText, ServoTableWrapper, ServoAnonymousTableWrapper, ServoAnonymousTable, ServoAnonymousTableRow, ServoAnonymousTableCell, ServoAnonymousBlock, ServoInlineBlockWrapper, ServoInlineAbsolute, }

A pseudo-element, both public and private.

NB: If you add to this list, be sure to update each_simple_pseudo_element too.

Variants

Methods

impl PseudoElement
[src]

[src]

Gets the canonical index of this eagerly-cascaded pseudo-element.

[src]

An index for this pseudo-element to be indexed in an enumerated array.

[src]

An array of None, one per pseudo-element.

[src]

Creates a pseudo-element from an eager index.

[src]

Whether the current pseudo element is ::before or ::after.

[src]

Whether this pseudo-element is the ::before pseudo.

[src]

Whether this pseudo-element is the ::after pseudo.

[src]

Whether the current pseudo element is :first-letter

[src]

Whether the current pseudo element is :first-line

[src]

Whether this pseudo-element is eagerly-cascaded.

[src]

Whether this pseudo-element is lazily-cascaded.

[src]

Whether this pseudo-element is for an anonymous box.

[src]

Whether this pseudo-element skips flex/grid container display-based fixup.

[src]

Whether this pseudo-element is precomputed.

[src]

Returns which kind of cascade type has this pseudo.

For more info on cascade types, see docs/components/style.md

Note: Keep this in sync with EAGER_PSEUDO_COUNT.

[src]

Covert non-canonical pseudo-element to canonical one, and keep a canonical one as it is.

[src]

Stub, only Gecko needs this

[src]

Property flag that properties must have to apply to this pseudo-element.

[src]

Whether this pseudo-element should actually exist if it has the given styles.

Trait Implementations

impl Clone for PseudoElement
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PseudoElement
[src]

[src]

Formats the value using the given formatter. Read more

impl Eq for PseudoElement
[src]

impl Hash for PseudoElement
[src]

[src]

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 PartialEq for PseudoElement
[src]

[src]

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

1.0.0
[src]

This method tests for !=.

impl MallocSizeOf for PseudoElement
[src]

[src]

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

impl PseudoElement for PseudoElement
[src]

The SelectorImpl this pseudo-element is used for.

[src]

Whether the pseudo-element supports a given state selector to the right of it. Read more

impl ToCss for PseudoElement
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

Serialize self in CSS syntax and return a string. Read more