aboutsummaryrefslogtreecommitdiffstats
path: root/src/components/script/dom/node.rs
diff options
context:
space:
mode:
authorJosh Matthews <josh@joshmatthews.net>2013-09-06 11:34:02 -0400
committerJosh Matthews <josh@joshmatthews.net>2013-09-09 10:25:39 -0700
commitda599c6ccf86a936f0603d832535cc18a7447cc8 (patch)
tree1e8a3e9cd57df04c13fc17bd324bbf1dda421247 /src/components/script/dom/node.rs
parent2d3a4d7e1d847a9e1d57ca2c00664953f17e239a (diff)
downloadservo-da599c6ccf86a936f0603d832535cc18a7447cc8.tar.gz
servo-da599c6ccf86a936f0603d832535cc18a7447cc8.zip
Make the global object be the Window object. Fixes #833.
Diffstat (limited to 'src/components/script/dom/node.rs')
-rw-r--r--src/components/script/dom/node.rs6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/components/script/dom/node.rs b/src/components/script/dom/node.rs
index 0c564cd4223..a1ec371e905 100644
--- a/src/components/script/dom/node.rs
+++ b/src/components/script/dom/node.rs
@@ -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) }