mirror of
https://github.com/servo/servo.git
synced 2025-06-20 23:28:59 +01:00
Update Rust
This commit is contained in:
parent
79956abb38
commit
1026556477
43 changed files with 252 additions and 150 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue