mirror of
https://github.com/servo/servo.git
synced 2025-09-03 11:38:22 +01:00
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:
parent
c676b52448
commit
e46f910b66
2 changed files with 18 additions and 14 deletions
|
@ -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)};
|
||||
}
|
||||
|
||||
<%
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue