mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Fix some no_move errors
This commit is contained in:
parent
63714ebc5f
commit
dcb0a0eab6
17 changed files with 46 additions and 34 deletions
|
@ -522,7 +522,7 @@ pub trait FormControl<'a> : Copy + Sized {
|
|||
let doc = document_from_node(elem).root();
|
||||
let owner = doc.r().GetElementById(owner).root();
|
||||
match owner {
|
||||
Some(o) => {
|
||||
Some(ref o) => {
|
||||
let maybe_form: Option<JSRef<HTMLFormElement>> = HTMLFormElementCast::to_ref(o.r());
|
||||
if maybe_form.is_some() {
|
||||
return maybe_form.map(Temporary::from_rooted);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue