mirror of
https://github.com/servo/servo.git
synced 2025-06-29 19:43:39 +01:00
style: Honor logical border colors in visited links.
Bug: 1472567 Reviewed-by: emilio MozReview-Commit-ID: IF8yvkFmPc4
This commit is contained in:
parent
1c799dd296
commit
4e8d3fce38
1 changed files with 8 additions and 8 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue