mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -42,6 +42,7 @@ impl HTMLAudioElement {
|
|||
prefix: Option<Prefix>,
|
||||
document: &Document,
|
||||
proto: Option<HandleObject>,
|
||||
can_gc: CanGc,
|
||||
) -> DomRoot<HTMLAudioElement> {
|
||||
Node::reflect_node_with_proto(
|
||||
Box::new(HTMLAudioElement::new_inherited(
|
||||
|
@ -49,6 +50,7 @@ impl HTMLAudioElement {
|
|||
)),
|
||||
document,
|
||||
proto,
|
||||
can_gc,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
@ -75,12 +77,12 @@ impl HTMLAudioElementMethods for HTMLAudioElement {
|
|||
|
||||
audio
|
||||
.upcast::<Element>()
|
||||
.SetAttribute(DOMString::from("preload"), DOMString::from("auto"))
|
||||
.SetAttribute(DOMString::from("preload"), DOMString::from("auto"), can_gc)
|
||||
.expect("should be infallible");
|
||||
if let Some(s) = src {
|
||||
audio
|
||||
.upcast::<Element>()
|
||||
.SetAttribute(DOMString::from("src"), s)
|
||||
.SetAttribute(DOMString::from("src"), s, can_gc)
|
||||
.expect("should be infallible");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue