mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
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. |
||
---|---|---|
.. | ||
Cargo.toml | ||
lib.rs | ||
message.rs | ||
reporter.rs | ||
rpc.rs | ||
wrapper_traits.rs |