mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Remove Stylist::might_have_state_dependency.
We always know for sure whether we have a dependency on particular event state bits, so just use has_state_dependency.
This commit is contained in:
parent
21926e0008
commit
2f21070701
2 changed files with 2 additions and 8 deletions
|
@ -625,12 +625,6 @@ impl Stylist {
|
|||
}
|
||||
}
|
||||
|
||||
/// Returns whether the given ElementState bit might be relied upon by a
|
||||
/// selector of some rule in the stylist.
|
||||
pub fn might_have_state_dependency(&self, state: ElementState) -> bool {
|
||||
self.has_state_dependency(state)
|
||||
}
|
||||
|
||||
/// Returns whether the given ElementState bit is relied upon by a selector
|
||||
/// of some rule in the stylist.
|
||||
pub fn has_state_dependency(&self, state: ElementState) -> bool {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue