зеркало из https://github.com/mozilla/gecko-dev.git
servo: Merge #19601 - style: Don't adjust :visited styles (from emilio:adjust-visited); r=upsuper
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 Source-Repo: https://github.com/servo/servo Source-Revision: d6797db10054dd42a7e96ce2ca8198838b068c81 --HG-- extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear extra : subtree_revision : 73cf2966d38e6159a3558b735a6bf5a36ab334d1
This commit is contained in:
Родитель
10b1db0472
Коммит
fbfdcd0795
|
@ -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")]
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче