Generate bindings for Window.

This commit is contained in:
Josh Matthews 2013-07-30 14:51:16 -04:00
parent 5546f2105b
commit a2bdab7989
24 changed files with 227 additions and 278 deletions

View file

@ -76,10 +76,10 @@ impl CacheableWrapper for ClientRect {
}
impl BindingObject for ClientRect {
fn GetParentObject(&self, cx: *JSContext) -> @mut CacheableWrapper {
fn GetParentObject(&self, cx: *JSContext) -> Option<@mut CacheableWrapper> {
let page = page_from_context(cx);
unsafe {
(*page).frame.get_ref().window as @mut CacheableWrapper
Some((*page).frame.get_ref().window as @mut CacheableWrapper)
}
}
}