mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Introduce Reflectable::global_scope
This commit is contained in:
parent
27f100b1d4
commit
ae6af5172b
30 changed files with 116 additions and 120 deletions
|
@ -95,7 +95,7 @@ impl BluetoothRemoteGATTCharacteristic {
|
|||
let descriptor = receiver.recv().unwrap();
|
||||
match descriptor {
|
||||
Ok(descriptor) => {
|
||||
Ok(BluetoothRemoteGATTDescriptor::new(self.global().r().as_global_scope(),
|
||||
Ok(BluetoothRemoteGATTDescriptor::new(&self.global_scope(),
|
||||
self,
|
||||
DOMString::from(descriptor.uuid),
|
||||
descriptor.instance_id))
|
||||
|
@ -126,7 +126,7 @@ impl BluetoothRemoteGATTCharacteristic {
|
|||
match descriptors_vec {
|
||||
Ok(descriptor_vec) => {
|
||||
Ok(descriptor_vec.into_iter()
|
||||
.map(|desc| BluetoothRemoteGATTDescriptor::new(self.global().r().as_global_scope(),
|
||||
.map(|desc| BluetoothRemoteGATTDescriptor::new(&self.global_scope(),
|
||||
self,
|
||||
DOMString::from(desc.uuid),
|
||||
desc.instance_id))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue