style: Honor logical border colors in visited links.

Bug: 1472567
Reviewed-by: emilio
MozReview-Commit-ID: IF8yvkFmPc4
This commit is contained in:
Oriol Brufau 2018-07-05 12:56:34 +02:00 committed by Emilio Cobos Álvarez
parent 1c799dd296
commit 4e8d3fce38
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -3768,14 +3768,6 @@ where
PropertyDeclarationId::Custom(..) => continue,
};
// Only a few properties are allowed to depend on the visited state
// of links. When cascading visited styles, we can save time by
// only processing these properties.
if flags.contains(CascadeFlags::VISITED_DEPENDENT_ONLY) &&
!longhand_id.is_visited_dependent() {
continue
}
if !apply_reset && !longhand_id.inherited() {
continue;
}
@ -3795,6 +3787,14 @@ where
continue
}
// Only a few properties are allowed to depend on the visited state
// of links. When cascading visited styles, we can save time by
// only processing these properties.
if flags.contains(CascadeFlags::VISITED_DEPENDENT_ONLY) &&
!physical_longhand_id.is_visited_dependent() {
continue
}
let mut declaration = match *declaration {
PropertyDeclaration::WithVariables(ref declaration) => {
if !declaration.id.inherited() {