diff options
Diffstat (limited to 'components/style/restyle_hints.rs')
-rw-r--r-- | components/style/restyle_hints.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/style/restyle_hints.rs b/components/style/restyle_hints.rs index 57c9f13c672..9e5dc9ad3e4 100644 --- a/components/style/restyle_hints.rs +++ b/components/style/restyle_hints.rs @@ -368,7 +368,7 @@ impl RestyleHint { /// Returns whether this `RestyleHint` represents at least as much restyle /// work as the specified one. #[inline] - pub fn contains(&mut self, other: &Self) -> bool { + pub fn contains(&self, other: &Self) -> bool { self.match_under_self.contains(other.match_under_self) && (self.match_later_siblings & other.match_later_siblings) == other.match_later_siblings && self.replacements.contains(other.replacements) |