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
After
Before
Selection
DetailsSummary
DetailsContent
ServoText
ServoInputText
ServoTableWrapper
ServoAnonymousTableWrapper
ServoAnonymousTable
ServoAnonymousTableRow
ServoAnonymousTableCell
ServoAnonymousBlock
ServoInlineBlockWrapper
ServoInlineAbsolute
Methods
impl PseudoElement
[src]
pub fn eager_index(&self) -> usize
[src]
Gets the canonical index of this eagerly-cascaded pseudo-element.
pub fn index(&self) -> usize
[src]
An index for this pseudo-element to be indexed in an enumerated array.
pub fn pseudo_none_array<T>() -> [Option<T>; 15]
[src]
An array of None
, one per pseudo-element.
pub fn from_eager_index(i: usize) -> Self
[src]
Creates a pseudo-element from an eager index.
pub fn is_before_or_after(&self) -> bool
[src]
Whether the current pseudo element is ::before or ::after.
pub fn is_before(&self) -> bool
[src]
Whether this pseudo-element is the ::before pseudo.
pub fn is_after(&self) -> bool
[src]
Whether this pseudo-element is the ::after pseudo.
pub fn is_first_letter(&self) -> bool
[src]
Whether the current pseudo element is :first-letter
pub fn is_first_line(&self) -> bool
[src]
Whether the current pseudo element is :first-line
pub fn is_eager(&self) -> bool
[src]
Whether this pseudo-element is eagerly-cascaded.
pub fn is_lazy(&self) -> bool
[src]
Whether this pseudo-element is lazily-cascaded.
pub fn is_anon_box(&self) -> bool
[src]
Whether this pseudo-element is for an anonymous box.
pub fn skip_item_based_display_fixup(&self) -> bool
[src]
Whether this pseudo-element skips flex/grid container display-based fixup.
pub fn is_precomputed(&self) -> bool
[src]
Whether this pseudo-element is precomputed.
pub fn cascade_type(&self) -> PseudoElementCascadeType
[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.
pub fn canonical(&self) -> PseudoElement
[src]
Covert non-canonical pseudo-element to canonical one, and keep a canonical one as it is.
pub fn pseudo_info(&self)
[src]
Stub, only Gecko needs this
pub fn property_restriction(&self) -> Option<PropertyFlags>
[src]
Property flag that properties must have to apply to this pseudo-element.
pub fn should_exist(&self, style: &ComputedValues) -> bool
[src]
Whether this pseudo-element should actually exist if it has the given styles.
Trait Implementations
impl Clone for PseudoElement
[src]
fn clone(&self) -> PseudoElement
[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
impl Debug for PseudoElement
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Eq for PseudoElement
[src]
impl Hash for PseudoElement
[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 PseudoElement
[src]
fn eq(&self, __arg_0: &PseudoElement) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl MallocSizeOf for PseudoElement
[src]
fn size_of(&self, ops: &mut MallocSizeOfOps) -> usize
[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]
type Impl = SelectorImpl
The SelectorImpl
this pseudo-element is used for.
fn supports_pseudo_class(&self, _: &NonTSPseudoClass) -> bool
[src]
Whether the pseudo-element supports a given state selector to the right of it. Read more