Skip to main content

LonghandIdSet

Type Alias LonghandIdSet 

Source
pub type LonghandIdSet = IdSet<LonghandId, { _ }>;
Expand description

A set of longhand properties.

Aliased Type§

pub struct LonghandIdSet {
    storage: [u32; 9],
    _phantom: PhantomData<LonghandId>,
}

Fields§

§storage: [u32; 9]§_phantom: PhantomData<LonghandId>

Implementations§

Source§

impl LonghandIdSet

Source

pub(super) fn reset() -> &'static Self

The set of non-inherited longhands.

Source

pub(super) fn discrete_animatable() -> &'static Self

Source

pub(super) fn logical() -> &'static Self

Source

pub(super) fn ignored_when_colors_disabled() -> &'static Self

Returns the set of longhands that are ignored when document colors are disabled.

Source

pub(super) fn visited_dependent() -> &'static Self

Only a few properties are allowed to depend on the visited state of links. When cascading visited styles, we can save time by only processing these properties.

Source

pub(super) fn prioritary_properties() -> &'static Self

Source

pub(super) fn late_group_only_inherited() -> &'static Self

Source

pub(super) fn late_group() -> &'static Self

Source

pub fn margin_properties() -> &'static Self

Returns the set of margin properties, for the purposes of

use counters / warnings.

Source

pub fn border_background_properties() -> &'static Self

Returns the set of border properties for the purpose of disabling native appearance.

Source

pub fn zoom_dependent() -> &'static Self

Returns properties that are zoom dependent (basically, that contain lengths).

Source

pub fn zoom_dependent_inherited_properties() -> &'static Self

Note that it’s different from zoom_dependent(), as this only includes inherited, physical properties.

Source§

impl LonghandIdSet

Source

pub fn contains_any_reset(&self) -> bool

Return whether this set contains any reset longhand.

Trait Implementations§

Source§

impl ToShmem for LonghandIdSet

Source§

fn to_shmem(&self, _builder: &mut SharedMemoryBuilder) -> Result<Self>

Clones this value into a form suitable for writing into a SharedMemoryBuilder. Read more