mirror of
https://github.com/servo/servo.git
synced 2025-07-22 23:03:42 +01:00
Introduce Reflectable::global_scope
This commit is contained in:
parent
27f100b1d4
commit
ae6af5172b
30 changed files with 116 additions and 120 deletions
|
@ -80,7 +80,7 @@ impl BluetoothRemoteGATTServer {
|
|||
let service = receiver.recv().unwrap();
|
||||
match service {
|
||||
Ok(service) => {
|
||||
Ok(BluetoothRemoteGATTService::new(self.global().r().as_global_scope(),
|
||||
Ok(BluetoothRemoteGATTService::new(&self.global_scope(),
|
||||
&self.device.get(),
|
||||
DOMString::from(service.uuid),
|
||||
service.is_primary,
|
||||
|
@ -112,7 +112,7 @@ impl BluetoothRemoteGATTServer {
|
|||
match services_vec {
|
||||
Ok(service_vec) => {
|
||||
Ok(service_vec.into_iter()
|
||||
.map(|service| BluetoothRemoteGATTService::new(self.global().r().as_global_scope(),
|
||||
.map(|service| BluetoothRemoteGATTService::new(&self.global_scope(),
|
||||
&self.device.get(),
|
||||
DOMString::from(service.uuid),
|
||||
service.is_primary,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue