aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/selector_matching.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/selector_matching.rs')
-rw-r--r--components/style/selector_matching.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/components/style/selector_matching.rs b/components/style/selector_matching.rs
index 53f1a0d3589..8cc56e693eb 100644
--- a/components/style/selector_matching.rs
+++ b/components/style/selector_matching.rs
@@ -174,10 +174,10 @@ impl Stylist {
pub fn restyle_hint_for_state_change<E>(&self, element: &E,
current_state: ElementState,
- state_change: ElementState)
+ old_state: ElementState)
-> RestyleHint
where E: Element + Clone {
- self.state_deps.compute_hint(element, current_state, state_change)
+ self.state_deps.compute_hint(element, current_state, old_state)
}
pub fn set_device(&mut self, device: Device) {