mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Hold a Temporary in AncestorIterator
This commit is contained in:
parent
6a6ecb9afa
commit
bf7c791e3a
10 changed files with 91 additions and 63 deletions
|
@ -129,7 +129,7 @@ impl<'a> VirtualMethods for JSRef<'a, HTMLSelectElement> {
|
|||
}
|
||||
|
||||
let node: JSRef<Node> = NodeCast::from_ref(*self);
|
||||
if node.ancestors().any(|ancestor| ancestor.is_htmlfieldsetelement()) {
|
||||
if node.ancestors().any(|ancestor| ancestor.root().r().is_htmlfieldsetelement()) {
|
||||
node.check_ancestors_disabled_state_for_form_control();
|
||||
} else {
|
||||
node.check_disabled_attribute();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue