mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
style: Simplify and remove some more code.
Bug: 1396073 Reviewed-by: xidorn MozReview-Commit-ID: Ec9pfQw7U6W Signed-off-by: Emilio Cobos Álvarez <emilio@crisal.io>
This commit is contained in:
parent
87dc00d54f
commit
0ead078aa0
1 changed files with 5 additions and 8 deletions
|
@ -1972,14 +1972,11 @@ impl<'le> ::selectors::Element for GeckoElement<'le> {
|
|||
NonTSPseudoClass::MozLocaleDir(ref s) |
|
||||
NonTSPseudoClass::Dir(ref s) => {
|
||||
unsafe {
|
||||
let mut set_slow_selector = false;
|
||||
let matches = Gecko_MatchStringArgPseudo(self.0,
|
||||
pseudo_class.to_gecko_pseudoclasstype().unwrap(),
|
||||
s.as_ptr(), &mut set_slow_selector);
|
||||
if set_slow_selector {
|
||||
flags_setter(self, HAS_SLOW_SELECTOR);
|
||||
}
|
||||
matches
|
||||
Gecko_MatchStringArgPseudo(
|
||||
self.0,
|
||||
pseudo_class.to_gecko_pseudoclasstype().unwrap(),
|
||||
s.as_ptr(),
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue