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
|
@ -35,12 +35,12 @@ impl URLSearchParams {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: &GlobalRef) -> Temporary<URLSearchParams> {
|
||||
pub fn new(global: GlobalRef) -> Temporary<URLSearchParams> {
|
||||
reflect_dom_object(box URLSearchParams::new_inherited(), global, URLSearchParamsBinding::Wrap)
|
||||
}
|
||||
|
||||
pub fn Constructor(global: &GlobalRef, init: Option<StringOrURLSearchParams>) -> Fallible<Temporary<URLSearchParams>> {
|
||||
let usp = URLSearchParams::new(global).root();
|
||||
let usp = URLSearchParams::new(*global).root();
|
||||
match init {
|
||||
Some(eString(_s)) => {
|
||||
// XXXManishearth we need to parse the input here
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue