Auto merge of #9729 - Ms2ger:bc-option, r=jdm

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.

<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.svg" height="40" alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9729)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2016-02-24 01:21:01 +05:30
commit d85ee09bc7
2 changed files with 7 additions and 7 deletions

View file

@ -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`.