Struct style::servo::selector_parser::ServoElementSnapshot [] [src]

pub struct ServoElementSnapshot {
    pub state: Option<ElementState>,
    pub attrs: Option<Vec<(AttrIdentifier, AttrValue)>>,
    pub is_html_element_in_html_document: bool,
    pub class_changed: bool,
    pub id_changed: bool,
    pub other_attributes_changed: bool,
}

Servo's version of an element snapshot.

Fields

The stored state of the element.

The set of stored attributes and its values.

Whether this element is an HTML element in an HTML document.

Whether the class attribute changed or not.

Whether the id attribute changed or not.

Whether other attributes other than id or class changed or not.

Methods

impl ServoElementSnapshot
[src]

[src]

Create an empty element snapshot.

[src]

Returns whether the id attribute changed or not.

[src]

Returns whether the class attribute changed or not.

[src]

Returns whether other attributes other than id or class changed or not.

impl ServoElementSnapshot
[src]

[src]

selectors::Element::attr_matches

Trait Implementations

impl Debug for ServoElementSnapshot
[src]

[src]

Formats the value using the given formatter. Read more

impl MallocSizeOf for ServoElementSnapshot
[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 ElementSnapshot for ServoElementSnapshot
[src]

[src]

The state of the snapshot, if any.

[src]

If this snapshot contains attribute information.

[src]

The ID attribute per this snapshot. Should only be called if has_attrs() returns true. Read more

[src]

Whether this snapshot contains the class name. Should only be called if has_attrs() returns true. Read more

[src]

A callback that should be called for each class of the snapshot. Should only be called if has_attrs() returns true. Read more

[src]

The xml:lang="" or lang="" attribute value per this snapshot.