mirror of
https://github.com/servo/servo.git
synced 2025-06-21 15:49:04 +01:00
Move cast into if block.
This commit is contained in:
parent
663801ed79
commit
ea21db6a0f
1 changed files with 1 additions and 1 deletions
|
@ -198,8 +198,8 @@ impl VirtualMethods for HTMLOptionElement {
|
||||||
|
|
||||||
self.upcast::<Element>().check_parent_disabled_state_for_option();
|
self.upcast::<Element>().check_parent_disabled_state_for_option();
|
||||||
|
|
||||||
let node = self.upcast::<Node>();
|
|
||||||
if self.Selected() {
|
if self.Selected() {
|
||||||
|
let node = self.upcast::<Node>();
|
||||||
if let Some(select) = node.ancestors()
|
if let Some(select) = node.ancestors()
|
||||||
.filter_map(Root::downcast::<HTMLSelectElement>)
|
.filter_map(Root::downcast::<HTMLSelectElement>)
|
||||||
.next() {
|
.next() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue