mirror of
https://github.com/servo/servo.git
synced 2025-08-07 22:45:34 +01:00
Simplify node#parent_directionality
This commit is contained in:
parent
7d6d1c09cb
commit
7e2107b1a5
3 changed files with 6 additions and 9 deletions
|
@ -788,7 +788,10 @@ impl HTMLElement {
|
|||
}
|
||||
|
||||
if element_direction == "auto" {
|
||||
if let Some(directionality) = self.downcast::<HTMLInputElement>().and_then(|input| input.auto_directionality()) {
|
||||
if let Some(directionality) = self
|
||||
.downcast::<HTMLInputElement>()
|
||||
.and_then(|input| input.auto_directionality())
|
||||
{
|
||||
return directionality;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue