mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
style: Check that the lowercase attribute is different before trying to track it
Differential Revision: https://phabricator.services.mozilla.com/D173112
This commit is contained in:
parent
4804e8dd94
commit
536b3d603b
1 changed files with 7 additions and 3 deletions
|
@ -2004,12 +2004,16 @@ impl<'a> SelectorVisitor for StylistSelectorVisitor<'a> {
|
|||
) -> bool {
|
||||
if self.in_selector_list_of.in_nth_of() {
|
||||
self.nth_of_attribute_dependencies.insert(name.clone());
|
||||
self.nth_of_attribute_dependencies
|
||||
.insert(lower_name.clone());
|
||||
if name != lower_name {
|
||||
self.nth_of_attribute_dependencies
|
||||
.insert(lower_name.clone());
|
||||
}
|
||||
}
|
||||
|
||||
self.attribute_dependencies.insert(name.clone());
|
||||
self.attribute_dependencies.insert(lower_name.clone());
|
||||
if name != lower_name {
|
||||
self.attribute_dependencies.insert(lower_name.clone());
|
||||
}
|
||||
|
||||
true
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue