remove get_rooted() and replace all references to it with references to get()

This commit is contained in:
rohan.prinja 2015-10-29 21:48:39 +09:00
parent 430578355b
commit 4a4f041948
11 changed files with 28 additions and 34 deletions

View file

@ -168,12 +168,12 @@ impl EventMethods for Event {
// https://dom.spec.whatwg.org/#dom-event-target
fn GetTarget(&self) -> Option<Root<EventTarget>> {
self.target.get_rooted()
self.target.get()
}
// https://dom.spec.whatwg.org/#dom-event-currenttarget
fn GetCurrentTarget(&self) -> Option<Root<EventTarget>> {
self.current_target.get_rooted()
self.current_target.get()
}
// https://dom.spec.whatwg.org/#dom-event-defaultprevented