export boxedness of types from longhand_properties_idents

The only piece of information about longhand SpecifiedValue types that
we don't have outside of the properties module is whether the types are
boxed or not.  Provide that information in the
longhand_properties_idents macro so we can move
test_size_of_specified_values outside of the properties module.
This commit is contained in:
Nathan Froyd 2017-08-04 08:03:56 -04:00
parent b35791f86f
commit e962ac365b
2 changed files with 2 additions and 2 deletions

View file

@ -171,7 +171,7 @@ pub mod gecko_properties {
}
macro_rules! reexport_computed_values {
( $( $name: ident )+ ) => {
( $( { $name: ident, $boxed: expr } )+ ) => {
/// Types for [computed values][computed].
///
/// [computed]: https://drafts.csswg.org/css-cascade/#computed

View file

@ -3419,7 +3419,7 @@ macro_rules! longhand_properties_idents {
($macro_name: ident) => {
$macro_name! {
% for property in data.longhands:
${property.ident}
{ ${property.ident}, ${"true" if property.boxed else "false"} }
% endfor
}
}