diff options
author | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-27 18:34:15 +0200 |
---|---|---|
committer | Anthony Ramine <n.oxyde@gmail.com> | 2015-04-28 09:22:46 +0200 |
commit | 1a30925cad5c55943e21d60e2891003b0ff722c9 (patch) | |
tree | 9a68eaef3d1cfdd2883879c13758508ec53c1f47 /components/script/dom/uievent.rs | |
parent | 2770886196269d264d46b0357669bbd0f9626995 (diff) | |
download | servo-1a30925cad5c55943e21d60e2891003b0ff722c9.tar.gz servo-1a30925cad5c55943e21d60e2891003b0ff722c9.zip |
Remove Temporary::new()
Temporary::from_rooted() now takes an Assignable value.
Diffstat (limited to 'components/script/dom/uievent.rs')
-rw-r--r-- | components/script/dom/uievent.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/uievent.rs b/components/script/dom/uievent.rs index f4271e501d8..d65a30d10aa 100644 --- a/components/script/dom/uievent.rs +++ b/components/script/dom/uievent.rs @@ -74,7 +74,7 @@ impl UIEvent { impl<'a> UIEventMethods for JSRef<'a, UIEvent> { // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-UIEvent-view fn GetView(self) -> Option<Temporary<Window>> { - self.view.get().map(Temporary::new) + self.view.get().map(Temporary::from_rooted) } // https://dvcs.w3.org/hg/dom3events/raw-file/tip/html/DOM3-Events.html#widl-UIEvent-detail |