script: Eliminate the phantom type in Node, as it is no longer needed

for enforcing layout memory safety.
This commit is contained in:
Patrick Walton 2013-12-17 15:03:37 -08:00
parent 8f886e599e
commit 436b1e891d
10 changed files with 33 additions and 45 deletions

View file

@ -303,7 +303,7 @@ DOMInterfaces = {
'Node': {
'nativeType': 'AbstractNode',
'concreteType': 'Node<ScriptView>',
'concreteType': 'Node',
'pointerType': '',
'needsAbstract': [
'appendChild',

View file

@ -5161,7 +5161,7 @@ class CGBindingRoot(CGThing):
'dom::bindings::proxyhandler',
'dom::bindings::proxyhandler::*',
'dom::document::AbstractDocument',
'dom::node::{AbstractNode, ScriptView}',
'dom::node::AbstractNode',
'dom::eventtarget::AbstractEventTarget',
'dom::event::AbstractEvent',
'servo_util::vec::zip_copies',

View file

@ -4,7 +4,7 @@
use dom::bindings::utils::{Reflectable, Reflector, Traceable};
use dom::types::*;
use dom::node::{AbstractNode, ScriptView};
use dom::node::AbstractNode;
use std::cast;
use std::libc;
@ -21,7 +21,7 @@ impl Reflectable for AbstractNode {
}
}
impl Traceable for Node<ScriptView> {
impl Traceable for Node {
fn trace(&self, tracer: *mut JSTracer) {
#[fixed_stack_segment]
fn trace_node(tracer: *mut JSTracer, node: Option<AbstractNode>, name: &str) {