servo/components
bors-servo 160a44c286 Auto merge of #10863 - perlun:improve-mako-file-structure-v4, r=SimonSapin
Extracted shorthands to separate files.

Following up on #10813, here is a similar extraction of the shorthand stuff as well.

I've deliberately tried to keep things similarly structured as in the longhand files. I.e. if a given property is in e.g. longhand/box.mako.rs, the shorthand stuff that relates to the same property is in shorthand/box.mako.rs and so forth.

----

The file is now down from ~7000 LoC to ~1750. A big improvement in my eyes, but there's still room for improving more. However, that shouldn't be done until we've had a bit of discussion about it. What we've done so far has been more-or-less obvious (after resolving the underlying Python/Mako issues with how to get things to properly communicate when things got split into multiple files etc). The remaining stuff is basically a plethora of anything from enums to structs to impls to... you name it.

One way to try and sort this out is to continue abusing Mako %include:s for this. I'm not sure it's the right way, but it would be a reasonably _easy_ way to do it. Another way would be to use Rust modules/crates etc. for sorting it out. I feel like too much of a novice on the Rust side of stuff yet to have any sensible opinions on how to get that done, so here I'd very much like suggestions from other people in the project.

(This is more of an entry point for discussion, and we could very well move that to a separate issue if you like. I think the more important short-term point is to try and get this merged. 😊 Please let me know if you feel it is OK, and if not, feel free to suggest adjustments.)

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10863)
<!-- Reviewable:end -->
2016-04-29 10:57:21 -07:00
..
canvas Simplify TOML syntax 2016-04-26 23:51:36 +02:00
canvas_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
compositing Auto merge of #10837 - asajeffrey:add-mozbrowsererror-details, r=Manishearth 2016-04-29 09:18:39 -07:00
devtools Simplify TOML syntax 2016-04-26 23:51:36 +02:00
devtools_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
gfx Use byte indices instead of char indices for text runs 2016-04-28 14:32:14 -07:00
gfx_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
layout Auto merge of #10834 - yoava333:master, r=SimonSapin 2016-04-29 08:12:18 -07:00
layout_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
msg Remove superfluous end-of-file whitespace. 2016-04-27 00:26:37 -04:00
net Auto merge of #10867 - danlrobertson:sandbox, r=KiChjang 2016-04-28 13:36:05 -07:00
net_traits Auto merge of #10867 - danlrobertson:sandbox, r=KiChjang 2016-04-28 13:36:05 -07:00
plugins Simplify TOML syntax 2016-04-26 23:51:36 +02:00
profile Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
profile_traits Add a method for dumping self-contained HTML timeline profiles 2016-04-27 18:35:17 -07:00
range Use num-traits in range. 2016-04-20 14:59:05 +02:00
script Auto merge of #10837 - asajeffrey:add-mozbrowsererror-details, r=Manishearth 2016-04-29 09:18:39 -07:00
script_traits Auto merge of #10837 - asajeffrey:add-mozbrowsererror-details, r=Manishearth 2016-04-29 09:18:39 -07:00
servo Auto merge of #10895 - mbrubeck:byteindex, r=pcwalton 2016-04-28 20:22:09 -07:00
style Auto merge of #10863 - perlun:improve-mako-file-structure-v4, r=SimonSapin 2016-04-29 10:57:21 -07:00
style_traits Simplify TOML syntax 2016-04-26 23:51:36 +02:00
util Auto merge of #10895 - mbrubeck:byteindex, r=pcwalton 2016-04-28 20:22:09 -07:00
webdriver_server Simplify TOML syntax 2016-04-26 23:51:36 +02:00