mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Stop returning an Option from Window::browsing_context.
A Window always has a WindowProxy; the only reason it's wrapped in a nullable field is the order in which those objects are created.
This commit is contained in:
parent
90c7b78b12
commit
0e35931152
2 changed files with 7 additions and 7 deletions
|
@ -395,7 +395,7 @@ pub unsafe extern "C" fn outerize_global(_cx: *mut JSContext, obj: HandleObject)
|
|||
debug!("outerizing");
|
||||
let win = root_from_handleobject::<window::Window>(obj).unwrap();
|
||||
let context = win.browsing_context();
|
||||
context.as_ref().unwrap().window_proxy()
|
||||
context.window_proxy()
|
||||
}
|
||||
|
||||
/// Deletes the property `id` from `object`.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue