Skip to content

Commit

Permalink
export boxedness of types from longhand_properties_idents
Browse files Browse the repository at this point in the history
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 e962ac3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion components/style/lib.rs
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion components/style/properties/properties.mako.rs
Expand Up @@ -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
}
}
Expand Down

0 comments on commit e962ac3

Please sign in to comment.