mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Use left-to-right indices in the invalidator.
This will make easier to create external invalidations, and also makes reasoning about the invalidator a bit easier.
This commit is contained in:
parent
086c48210c
commit
f1cc225e97
5 changed files with 46 additions and 39 deletions
|
@ -79,7 +79,7 @@ impl Dependency {
|
|||
return None;
|
||||
}
|
||||
|
||||
Some(self.selector.combinator_at(self.selector_offset))
|
||||
Some(self.selector.combinator_at_match_order(self.selector_offset - 1))
|
||||
}
|
||||
|
||||
/// Whether this dependency affects the style of the element.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue