mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Replace Root::deref() calls by Root::r() calls where possible.
This changes those calls that were already sound.
This commit is contained in:
parent
c9f26dfd59
commit
1dad710063
61 changed files with 479 additions and 471 deletions
|
@ -42,9 +42,9 @@ impl ProgressEvent {
|
|||
let ev = reflect_dom_object(box ProgressEvent::new_inherited(length_computable, loaded, total),
|
||||
global,
|
||||
ProgressEventBinding::Wrap).root();
|
||||
let event: JSRef<Event> = EventCast::from_ref(*ev);
|
||||
let event: JSRef<Event> = EventCast::from_ref(ev.r());
|
||||
event.InitEvent(type_, can_bubble, cancelable);
|
||||
Temporary::from_rooted(*ev)
|
||||
Temporary::from_rooted(ev.r())
|
||||
}
|
||||
pub fn Constructor(global: &GlobalRef,
|
||||
type_: DOMString,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue