mirror of
https://github.com/servo/servo.git
synced 2025-06-24 09:04:33 +01:00
Generate bindings for Window.
This commit is contained in:
parent
5546f2105b
commit
a2bdab7989
24 changed files with 227 additions and 278 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue