mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
script: Eliminate the phantom type in Node
, as it is no longer needed
for enforcing layout memory safety.
This commit is contained in:
parent
8f886e599e
commit
436b1e891d
10 changed files with 33 additions and 45 deletions
|
@ -303,7 +303,7 @@ DOMInterfaces = {
|
|||
|
||||
'Node': {
|
||||
'nativeType': 'AbstractNode',
|
||||
'concreteType': 'Node<ScriptView>',
|
||||
'concreteType': 'Node',
|
||||
'pointerType': '',
|
||||
'needsAbstract': [
|
||||
'appendChild',
|
||||
|
|
|
@ -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',
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue