servo/components/style/gecko
Emilio Cobos Álvarez a68bc29b96 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
2019-02-10 07:11:46 +01:00
..
arc_types.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
conversions.rs style: Derive more length stuff, and shrink MaxLength / MozLength's repr(C) representation. 2019-02-10 07:11:46 +01:00
data.rs style: Rustfmt recent changes. 2019-01-07 00:32:54 +01:00
media_features.rs Honour system titlebar button left/right placement. 2019-01-20 14:32:58 +01:00
media_queries.rs Rename nsIDocument to mozilla::dom::Document. 2019-01-07 00:32:51 +01:00
mod.rs style: Make Servo use a single thread-pool for layout-related tasks per-process. 2018-12-23 13:00:56 +01:00
non_ts_pseudo_class_list.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
pseudo_element.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
pseudo_element_definition.mako.rs style: Update the Rust target version for bindgen. 2019-01-07 00:32:50 +01:00
regen_atoms.py style: Document a few more macros. 2019-01-13 21:59:25 +01:00
restyle_damage.rs style: Update the Rust target version for bindgen. 2019-01-07 00:32:50 +01:00
rules.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
selector_parser.rs Rustfmt has changed its default style :/ 2018-12-28 13:17:47 +01:00
snapshot.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
snapshot_helpers.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
traversal.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
url.rs Update MPL license to https (part 4) 2018-11-19 14:47:27 +01:00
values.rs style: Derive more length stuff, and shrink MaxLength / MozLength's repr(C) representation. 2019-02-10 07:11:46 +01:00
wrapper.rs style: Fix gecko build. 2019-01-07 00:32:54 +01:00