mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Updated reflect_dom_object to be passed by value
This commit is contained in:
parent
9cea3ce266
commit
2cbf5a3671
51 changed files with 75 additions and 75 deletions
|
@ -25,14 +25,14 @@ impl WebSocket {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: &GlobalRef, url: DOMString) -> Temporary<WebSocket> {
|
||||
pub fn new(global: GlobalRef, url: DOMString) -> Temporary<WebSocket> {
|
||||
reflect_dom_object(box WebSocket::new_inherited(url),
|
||||
global,
|
||||
WebSocketBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: &GlobalRef, url: DOMString) -> Fallible<Temporary<WebSocket>> {
|
||||
Ok(WebSocket::new(global, url))
|
||||
Ok(WebSocket::new(*global, url))
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue