auto merge of #883 : jdm/servo/newglobal, r=kmcallister

Requires https://github.com/mozilla-servo/rust-mozjs/pull/34.
This commit is contained in:
bors-servo 2013-09-09 17:06:53 -07:00
commit 0dd90c75d8
12 changed files with 95 additions and 69 deletions

View file

@ -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};
@ -631,11 +630,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) }