servo/components/style/properties
Emilio Cobos Álvarez 5ac12b5df4
style: Make the TElement type arrive to the cascade function.
Not super-proud of this one, but it's the easiest way I could think of.

The changeset looks bigger than what it is, because while at it I've rewrapped a
fair amount of functions around to use proper block indentation.

Alternatives are parameterizing Stylist by <E>, which is not fun, or moving the
concrete element from layout_thread to layout, but that implies layout depending
on script, which isn't fun either.

Other alternative is implementing an empty enum and making anon boxes work on
it. It has the advantage of removing the annoying type parameter, but the
disadvantage of instantiating `cascade` twice, which isn't great, and having to
maintain all the boilerplate of a `TElement` implementation that just does
nothing.
2018-01-23 00:57:54 +01:00
..
helpers Avoid entraining various Debug impls in release builds. 2018-01-13 09:51:46 -08:00
longhand style: Remove -moz-border-*-colors. 2018-01-22 16:12:35 +01:00
shorthand style: Don't allow fallback alignment in place-content shorthand. 2018-01-16 17:51:24 +01:00
build.py Fix Stylo tests to pass on both Stable and Nightly Rust. 2017-11-21 12:24:08 +01:00
computed_value_flags.rs style: Remove TNode::set_can_be_fragmented and TNode::can_be_fragmented. 2018-01-04 14:45:54 +01:00
data.py style: Remove "derived" properties and the concept of "custom cascade". 2018-01-14 17:10:44 +01:00
declaration_block.rs Avoid the generic writer parameter for PropertyDeclaration serialization. 2018-01-22 14:58:05 -08:00
gecko.mako.rs style: Remove -moz-border-*-colors. 2018-01-22 16:12:35 +01:00
helpers.mako.rs style: Remove "derived" properties and the concept of "custom cascade". 2018-01-14 17:10:44 +01:00
Mako-0.9.1.zip Revert "Remove mako.zip" 2016-09-04 12:52:30 +08:00
properties.html.mako Move Mako-related files into a new sub-directory. 2016-04-20 14:49:27 +02:00
properties.mako.rs style: Make the TElement type arrive to the cascade function. 2018-01-23 00:57:54 +01:00