mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Make the global object be the Window object. Fixes #833.
This commit is contained in:
parent
2d3a4d7e1d
commit
da599c6ccf
12 changed files with 95 additions and 69 deletions
|
@ -21,7 +21,6 @@ use std::cast::transmute;
|
|||
use std::libc::c_void;
|
||||
use extra::arc::Arc;
|
||||
use js::jsapi::{JSObject, JSContext};
|
||||
use js::rust::Compartment;
|
||||
use netsurfcss::util::VoidPtrLike;
|
||||
use newcss::complete::CompleteSelectResults;
|
||||
use servo_util::tree::{TreeNode, TreeNodeRef};
|
||||
|
@ -628,11 +627,6 @@ impl VoidPtrLike for AbstractNode<LayoutView> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn define_bindings(compartment: @mut Compartment) {
|
||||
bindings::utils::initialize_global(compartment.global_obj.ptr);
|
||||
bindings::codegen::RegisterBindings::Register(compartment);
|
||||
}
|
||||
|
||||
impl CacheableWrapper for Node<ScriptView> {
|
||||
fn get_wrappercache(&mut self) -> &mut WrapperCache {
|
||||
unsafe { cast::transmute(&mut self.wrapper) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue