mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
remove unnecessary condition
This commit is contained in:
parent
f7d4a37f78
commit
fa8afbb1b0
1 changed files with 0 additions and 3 deletions
|
@ -375,9 +375,6 @@ pub fn is_exposed_in(object: HandleObject, globals: Globals) -> bool {
|
|||
unsafe {
|
||||
let unwrapped = UncheckedUnwrapObject(object.get(), /* stopAtWindowProxy = */ 0);
|
||||
let dom_class = get_dom_class(unwrapped).unwrap();
|
||||
if (dom_class.global.is_empty()) && (!globals.is_empty()) {
|
||||
return false;
|
||||
}
|
||||
globals.contains(dom_class.global)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue