Skip to content
Permalink
Browse files

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.
  • Loading branch information...
froydnj committed Aug 4, 2017
1 parent b35791f commit e962ac365b73b7abd47345494bd4e9b113773faf
Showing with 2 additions and 2 deletions.
  1. +1 −1 components/style/lib.rs
  2. +1 −1 components/style/properties/properties.mako.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
@@ -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
}
}

0 comments on commit e962ac3

Please sign in to comment.
You can’t perform that action at this time.