From e962ac365b73b7abd47345494bd4e9b113773faf Mon Sep 17 00:00:00 2001 From: Nathan Froyd Date: Fri, 4 Aug 2017 08:03:56 -0400 Subject: [PATCH] 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. --- components/style/lib.rs | 2 +- components/style/properties/properties.mako.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/style/lib.rs b/components/style/lib.rs index b82d2fd3cc0..e1453706977 100644 --- a/components/style/lib.rs +++ b/components/style/lib.rs @@ -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 diff --git a/components/style/properties/properties.mako.rs b/components/style/properties/properties.mako.rs index 0e11d2ac0ad..d6c6faf964d 100644 --- a/components/style/properties/properties.mako.rs +++ b/components/style/properties/properties.mako.rs @@ -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 } }