mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
auto merge of #883 : jdm/servo/newglobal, r=kmcallister
Requires https://github.com/mozilla-servo/rust-mozjs/pull/34.
This commit is contained in:
commit
0dd90c75d8
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};
|
||||
|
@ -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) }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue