mirror of
https://github.com/servo/servo.git
synced 2025-08-09 15:35:34 +01:00
Remove global_root_from_reflector
This commit is contained in:
parent
1fed45e393
commit
26455b8a67
4 changed files with 5 additions and 11 deletions
|
@ -111,11 +111,6 @@ pub fn global_scope_from_reflector<T: Reflectable>(reflector: &T) -> Root<Global
|
|||
unsafe { global_scope_from_object(*reflector.reflector().get_jsobject()) }
|
||||
}
|
||||
|
||||
/// Returns the global object of the realm that the given DOM object's reflector was created in.
|
||||
pub fn global_root_from_reflector<T: Reflectable>(reflector: &T) -> GlobalRoot {
|
||||
unsafe { global_root_from_object(*reflector.reflector().get_jsobject()) }
|
||||
}
|
||||
|
||||
/// Returns the Rust global scope from a JS global object.
|
||||
unsafe fn global_scope_from_global(global: *mut JSObject) -> Root<GlobalScope> {
|
||||
assert!(!global.is_null());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue