mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Add CanGc argument to reflect_dom_object (#34606)
* applied mach fmt Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Refinements Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> Modified reflect_dom_object signature and all its calls Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> * fix function calls when parameter is passed up Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com> --------- Signed-off-by: Domenico Rizzo <domenico.rizzo@gmail.com>
This commit is contained in:
parent
471d3572b7
commit
0e9746fbbe
207 changed files with 570 additions and 101 deletions
|
@ -14,6 +14,7 @@ use crate::dom::bindings::reflector::{reflect_dom_object, DomObject, Reflector};
|
|||
use crate::dom::bindings::root::DomRoot;
|
||||
use crate::dom::bindings::str::DOMString;
|
||||
use crate::dom::globalscope::GlobalScope;
|
||||
use crate::script_runtime::CanGc;
|
||||
|
||||
// https://webbluetoothcg.github.io/web-bluetooth/tests#test-runner
|
||||
#[dom_struct]
|
||||
|
@ -29,7 +30,7 @@ impl TestRunner {
|
|||
}
|
||||
|
||||
pub fn new(global: &GlobalScope) -> DomRoot<TestRunner> {
|
||||
reflect_dom_object(Box::new(TestRunner::new_inherited()), global)
|
||||
reflect_dom_object(Box::new(TestRunner::new_inherited()), global, CanGc::note())
|
||||
}
|
||||
|
||||
fn get_bluetooth_thread(&self) -> IpcSender<BluetoothRequest> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue