aboutsummaryrefslogtreecommitdiffstats
path: root/components/script_traits/lib.rs
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2019-01-18 19:32:27 +0000
committerEmilio Cobos Álvarez <emilio@crisal.io>2019-01-20 14:33:12 +0100
commit05881b5ab4bf6f18d09763978ee5924a5b0dd895 (patch)
treef30b40a57a2bedf0abfda9f6c85c7f7efdc93f92 /components/script_traits/lib.rs
parente27c15e2f992cf759c2e716189930689351285dd (diff)
downloadservo-05881b5ab4bf6f18d09763978ee5924a5b0dd895.tar.gz
servo-05881b5ab4bf6f18d09763978ee5924a5b0dd895.zip
style: Represent the percentage in LengthPercentage with something other than an option.
Not the prettiest, but it will work, and LengthPercentage will be 12 bytes which is pretty good (we could do better if wanted I guess): * Au(i32) length; * f32 percentage; * AllowedNumericType(u8) clamping_mode; * bool has_percentage; * bool was_calc; This will allow me to start moving C++ stuff to use this representation. Differential Revision: https://phabricator.services.mozilla.com/D16929
Diffstat (limited to 'components/script_traits/lib.rs')
0 files changed, 0 insertions, 0 deletions