mirror of
https://github.com/servo/servo.git
synced 2025-07-22 14:53:49 +01:00
Rename Root<T> to DomRoot<T>
In a later PR, DomRoot<T> will become a type alias of Root<Dom<T>>, where Root<T> will be able to handle all the things that need to be rooted that have a stable traceable address that doesn't move for the whole lifetime of the root. Stay tuned.
This commit is contained in:
parent
577370746e
commit
f87c2a8d76
291 changed files with 1774 additions and 1770 deletions
|
@ -7,7 +7,7 @@ use dom::bindings::codegen::Bindings::PermissionStatusBinding::PermissionStatusM
|
|||
use dom::bindings::codegen::Bindings::PermissionsBinding::{self, PermissionsMethods};
|
||||
use dom::bindings::error::Error;
|
||||
use dom::bindings::reflector::{DomObject, Reflector, reflect_dom_object};
|
||||
use dom::bindings::root::Root;
|
||||
use dom::bindings::root::DomRoot;
|
||||
use dom::bluetooth::Bluetooth;
|
||||
use dom::bluetoothpermissionresult::BluetoothPermissionResult;
|
||||
use dom::globalscope::GlobalScope;
|
||||
|
@ -63,7 +63,7 @@ impl Permissions {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn new(global: &GlobalScope) -> Root<Permissions> {
|
||||
pub fn new(global: &GlobalScope) -> DomRoot<Permissions> {
|
||||
reflect_dom_object(box Permissions::new_inherited(),
|
||||
global,
|
||||
PermissionsBinding::Wrap)
|
||||
|
@ -265,7 +265,7 @@ pub fn get_descriptor_permission_state(permission_name: PermissionName,
|
|||
-> PermissionState {
|
||||
// Step 1.
|
||||
let settings = match env_settings_obj {
|
||||
Some(env_settings_obj) => Root::from_ref(env_settings_obj),
|
||||
Some(env_settings_obj) => DomRoot::from_ref(env_settings_obj),
|
||||
None => GlobalScope::current().expect("No current global object"),
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue