Crate style [−] [src]
Calculate specified and computed values from a tree of DOM nodes and a set of stylesheets.
In particular, this crate contains the definitions of supported properties, the code to parse them into specified values and calculate the computed values based on the specified values, as well as the code to serialize both specified and computed values.
The main entry point is recalc_style_at
.
Reexports
pub extern crate servo_arc; |
Modules
animation |
CSS transitions and animations. |
applicable_declarations |
Applicable declarations management. |
attr |
Parsed representations of DOM attributes. |
bezier |
Parametric Bézier curves. |
bloom |
The style bloom filter is used as an optimization when matching deep descendant selectors. |
computed_values |
Types for computed values. |
context |
The context within which style is calculated. |
counter_style |
The |
custom_properties |
Support for custom properties for cascading variables. |
data |
Per-node data used in style calculation. |
dom |
Types and traits used to access the DOM from style calculation. |
dom_apis |
Generic implementations of some DOM APIs so they can be shared between Servo and Gecko. |
driver |
Implements traversal over the DOM tree. The traversal starts in sequential mode, and optionally parallelizes as it discovers work. |
element_state |
States elements can be in. |
error_reporting |
Types used to report parsing errors. |
font_face |
The |
font_metrics |
Access to font metrics from the style system. |
hash |
Reexports of hashglobe types in Gecko mode, and stdlib hashmap shims in Servo mode |
invalidation |
Different bits of code related to invalidating style. |
logical_geometry |
Geometry in flow-relative space. |
matching |
High-level interface to CSS selector matching. |
media_queries | |
parallel |
Implements parallel traversal over the DOM tree. |
parser |
The context within which CSS code is parsed. |
properties |
The CSS properties supported by the style system. Generated from the properties.mako.rs template by build.rs |
rule_cache |
A cache from rule node to computed values, in order to cache reset properties. |
rule_tree |
The rule tree. |
scoped_tls |
Stack-scoped thread-local storage for rayon thread pools. |
selector_map |
A data structure to efficiently index structs containing selectors by local name, ids and hash. |
selector_parser |
The pseudo-classes and pseudo-elements supported by the style system. |
servo |
Servo-specific bits of the style system. |
shared_lock |
Different objects protected by the same lock |
sharing |
Code related to the style sharing cache, an optimization that allows similar nodes to share style without having to run selector matching twice. |
str |
String utils for attributes and similar stuff. |
style_adjuster |
A struct to encapsulate all the style fixups and flags propagations a computed style needs in order for it to adhere to the CSS spec. |
style_resolver |
Style resolution for a given element or pseudo-element. |
stylesheet_set |
A centralized set of stylesheets for a document. |
stylesheets |
Style sheets and their CSS rules. |
stylist |
Selector matching. |
thread_state |
Supports dynamic assertions in about what sort of thread is running and what state it's in. |
timer |
A timer module, used to define a |
traversal |
Traversing the DOM tree; the bloom filter. |
traversal_flags |
Flags that control the traversal process. |
values |
Common values used in CSS. |
Macros
css_properties_accessors | |
longhand_properties_idents |
Traits
CaseSensitivityExt |
Extension methods for selectors::attr::CaseSensitivity |
Functions
serialize_comma_separated_list |
Serializes as CSS a comma-separated list of any |
Type Definitions
Atom | |
LocalName | |
Namespace | |
Prefix |