style: Rejigger serialization of a declaration block to not look at the shorthands length.

This is because I'm going to make shorthands() and longhands() return an
iterator, so that we account for prefs properly
(https://bugzilla.mozilla.org/show_bug.cgi?id=1438234).
This commit is contained in:
Emilio Cobos Álvarez 2018-02-20 10:05:58 +01:00
parent c676b52448
commit e46f910b66
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
2 changed files with 18 additions and 14 deletions

View file

@ -193,6 +193,9 @@ pub mod shorthands {
spec="https://drafts.csswg.org/css-cascade-3/#all-shorthand"
)
%>
/// The max amount of longhands that the `all` shorthand will ever contain.
pub const ALL_SHORTHAND_MAX_LEN: usize = ${len(logical_longhands + other_longhands)};
}
<%