diff options
author | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-01-27 01:03:44 +0100 |
---|---|---|
committer | Emilio Cobos Álvarez <emilio@crisal.io> | 2019-02-10 07:11:46 +0100 |
commit | a68bc29b96ac1c42d3940434c6c3239ee0f42a7a (patch) | |
tree | a80b2b0d9122026d67a71805636fe469f4bd9986 /components/layout/table_wrapper.rs | |
parent | 8dad956513eba5cea9ce895c6f5351ff9f95c835 (diff) | |
download | servo-a68bc29b96ac1c42d3940434c6c3239ee0f42a7a.tar.gz servo-a68bc29b96ac1c42d3940434c6c3239ee0f42a7a.zip |
style: Derive more length stuff, and shrink MaxLength / MozLength's repr(C) representation.
This patch:
* Makes LengthPercentageOrAuto generic, and removes a bunch of code fo
LengthPercentageOrNone, which was used only for servo and now can use the
normal MaxLength (with a cfg() guard for the ExtremumLength variant).
* Shrinks MaxLength / MozLength's repr(C) reperesentation by reducing enum
nesting. The shrinking is in preparation for using them from C++ too, though
that'd be a different bug.
* Moves NonNegative usage to the proper places so that stuff for them can be
derived.
I did this on top of bug 1523071 to prove both that it could be possible and
that stuff wasn't too messy. It got a bit messy, but just because of a bug I
had fixed in bindgen long time ago already, so this updates bindgen's patch
version to grab a fix instead of ugly workarounds :)
Differential Revision: https://phabricator.services.mozilla.com/D17762
Diffstat (limited to 'components/layout/table_wrapper.rs')
0 files changed, 0 insertions, 0 deletions