mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
parent
e6b05fa204
commit
10f3ef42bb
7 changed files with 73 additions and 27 deletions
|
@ -182,9 +182,9 @@ impl<'a, E> Element for ElementWrapper<'a, E>
|
|||
// FIXME(bz): How can I set this up so once Servo adds :dir()
|
||||
// support we don't forget to update this code?
|
||||
#[cfg(feature = "gecko")]
|
||||
NonTSPseudoClass::Dir(ref s) => {
|
||||
NonTSPseudoClass::Dir(ref dir) => {
|
||||
use invalidation::element::invalidation_map::dir_selector_to_state;
|
||||
let selector_flag = dir_selector_to_state(s);
|
||||
let selector_flag = dir_selector_to_state(dir);
|
||||
if selector_flag.is_empty() {
|
||||
// :dir() with some random argument; does not match.
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue