Rename ALIAS_PROPERTY with SHORTHAND_ALIAS_PROPERTY to prevent confusion

This commit is contained in:
Nazım Can Altınova 2017-05-09 13:47:39 +03:00
parent 9c9bd17871
commit e1053f2c71
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
3 changed files with 6 additions and 6 deletions

View file

@ -484,8 +484,8 @@ bitflags! {
/// This property has values that can establish a containing block for
/// absolutely positioned elements.
const ABSPOS_CB = 1 << 2,
/// This property(shorthand) is an alias of another property.
const ALIAS_PROPERTY = 1 << 3,
/// This shorthand property is an alias of another property.
const SHORTHAND_ALIAS_PROPERTY = 1 << 3,
}
}
@ -1263,7 +1263,7 @@ impl ToCss for PropertyDeclaration {
PropertyDeclaration::WithVariables(_, ref with_variables) => {
// https://drafts.csswg.org/css-variables/#variables-in-shorthands
match with_variables.from_shorthand {
Some(shorthand) if shorthand.flags().contains(ALIAS_PROPERTY) =>
Some(shorthand) if shorthand.flags().contains(SHORTHAND_ALIAS_PROPERTY) =>
dest.write_str(&*with_variables.css)?,
None => dest.write_str(&*with_variables.css)?,
_ => {},
@ -1345,7 +1345,7 @@ impl PropertyDeclaration {
Some(&*with_variables.css)
} else { None }
} else {
if shorthand.flags().contains(ALIAS_PROPERTY) {
if shorthand.flags().contains(SHORTHAND_ALIAS_PROPERTY) {
return Some(&*with_variables.css);
}
None