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
|
@ -106,14 +106,12 @@ impl Bluetooth {
|
|||
// Step 12-13.
|
||||
match device {
|
||||
Ok(device) => {
|
||||
let global = self.global();
|
||||
let global = global.r();
|
||||
let global = global.as_global_scope();
|
||||
let ad_data = BluetoothAdvertisingData::new(global,
|
||||
let global = self.global_scope();
|
||||
let ad_data = BluetoothAdvertisingData::new(&global,
|
||||
device.appearance,
|
||||
device.tx_power,
|
||||
device.rssi);
|
||||
Ok(BluetoothDevice::new(global,
|
||||
Ok(BluetoothDevice::new(&global,
|
||||
DOMString::from(device.id),
|
||||
device.name.map(DOMString::from),
|
||||
&ad_data))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue