mirror of
https://github.com/servo/servo.git
synced 2025-07-09 00:13:41 +01:00
Auto merge of #19601 - emilio:adjust-visited, r=upsuper
style: Don't adjust :visited styles. As the comment says those are not interesting, and it matches what we do for text and placeholders in Servo_ComputedValues_Inherit. This fixes https://bugzilla.mozilla.org/show_bug.cgi?id=1425893 <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/19601) <!-- Reviewable:end -->
This commit is contained in:
commit
d6797db100
1 changed files with 9 additions and 0 deletions
|
@ -557,6 +557,15 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
layout_parent_style: &ComputedValues,
|
||||
flags: CascadeFlags,
|
||||
) {
|
||||
// Don't adjust visited styles, visited-dependent properties aren't
|
||||
// affected by these adjustments and it'd be just wasted work anyway.
|
||||
//
|
||||
// It also doesn't make much sense to adjust them, since we don't
|
||||
// cascade most properties anyway, and they wouldn't be looked up.
|
||||
if flags.contains(CascadeFlags::VISITED_DEPENDENT_ONLY) {
|
||||
return;
|
||||
}
|
||||
|
||||
self.adjust_for_visited(flags);
|
||||
#[cfg(feature = "gecko")]
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue