servo/components/script_layout_interface
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
..
Cargo.toml Replace NonZero<*{const,mut} _> with std::ptr::NonNull 2018-01-22 17:41:25 +01:00
lib.rs style: Make the TElement type arrive to the cascade function. 2018-01-23 00:57:54 +01:00
message.rs changed f64 to u64 for navigation start timing until it had to be float 2017-11-01 20:45:22 +00:00
reporter.rs Replace all uses of the heapsize crate with malloc_size_of. 2017-10-18 22:20:37 +11:00
rpc.rs Switch to using WebRender hit testing 2017-10-17 23:33:13 +02:00
wrapper_traits.rs style: Make the TElement type arrive to the cascade function. 2018-01-23 00:57:54 +01:00