Crate style_traits

Source
Expand description

This module contains shared types and messages for use by devtools/script. The traits are here instead of in script so that the devtools crate can be modified independently of the rest of Servo.

Re-exports§

pub use crate::specified_value_info::CssType;
pub use crate::specified_value_info::KeywordsCollectFn;
pub use crate::specified_value_info::SpecifiedValueInfo;
pub use crate::values::Comma;
pub use crate::values::CommaWithSpace;
pub use crate::values::CssWriter;
pub use crate::values::OneOrMoreSeparated;
pub use crate::values::Separator;
pub use crate::values::Space;
pub use crate::values::ToCss;

Modules§

arc_slice
A thin atomically-reference-counted slice.
dom
Types used to access the DOM from style calculation.
owned_slice
A replacement for Box<[T]> that cbindgen can understand.
owned_str
A replacement for Box<str> that has a defined layout for FFI.
specified_value_info
Value information for devtools.
values
Helper types and traits for the handling of CSS values.

Structs§

ParsingMode
The mode to use when parsing values.
PinchZoomFactor
Represents a mobile style pinch zoom factor.

Enums§

CSSPixel
One CSS “px” in the coordinate system of the “initial viewport”: http://www.w3.org/TR/css-device-adapt/#initial-viewport
DevicePixel
One hardware pixel.
PropertyInheritsParseError
Errors that can be encountered while parsing the @property rule’s inherits descriptor.
PropertySyntaxParseError
Errors that can be encountered while parsing the @property rule’s syntax descriptor.
StyleParseErrorKind
Errors that can be encountered while parsing CSS values.
ValueParseErrorKind
Specific errors that can be encountered while parsing property values.

Traits§

SpeculativePainter
Speculatively execute paint code in the worklet thread pool.

Type Aliases§

ParseError
The error type for all CSS parsing routines.
ValueParseError
Error in property value parsing