Update Rust

This commit is contained in:
Brian Anderson 2013-08-28 15:43:47 -07:00
parent 79956abb38
commit 1026556477
43 changed files with 252 additions and 150 deletions

View file

@ -85,6 +85,7 @@ pub struct Document {
}
impl Document {
#[fixed_stack_segment]
pub fn new(root: AbstractNode<ScriptView>, window: Option<@mut Window>, doctype: DocumentType) -> Document {
let compartment = unsafe {(*window.get_ref().page).js_info.get_ref().js_compartment };
do root.with_base |base| {
@ -149,6 +150,7 @@ impl BindingObject for AbstractDocument {
}
impl DerivedWrapper for AbstractDocument {
#[fixed_stack_segment]
fn wrap(&mut self, _cx: *JSContext, _scope: *JSObject, vp: *mut JSVal) -> i32 {
let cache = self.get_wrappercache();
let wrapper = cache.get_wrapper();
@ -446,6 +448,7 @@ impl Document {
}
}
#[fixed_stack_segment]
pub fn teardown(&self) {
unsafe {
let compartment = (*self.window.get_ref().page).js_info.get_ref().js_compartment;