mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
cangc fixes in node.rs (#33984)
Signed-off-by: L Ashwin B <lashwinib@gmail.com>
This commit is contained in:
parent
3ed778150f
commit
bb4932026c
97 changed files with 1038 additions and 534 deletions
|
@ -75,6 +75,7 @@ impl HTMLButtonElement {
|
|||
prefix: Option<Prefix>,
|
||||
document: &Document,
|
||||
proto: Option<HandleObject>,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<HTMLButtonElement> {
|
||||
Node::reflect_node_with_proto(
|
||||
Box::new(HTMLButtonElement::new_inherited(
|
||||
|
@ -82,6 +83,7 @@ impl HTMLButtonElement {
|
|||
)),
|
||||
document,
|
||||
proto,
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -360,7 +362,7 @@ impl Activatable for HTMLButtonElement {
|
|||
ButtonType::Reset => {
|
||||
// TODO: is document owner fully active?
|
||||
if let Some(owner) = self.form_owner() {
|
||||
owner.reset(ResetFrom::NotFromForm);
|
||||
owner.reset(ResetFrom::NotFromForm, CanGc::note());
|
||||
}
|
||||
},
|
||||
_ => (),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue