Remove (now unused) NetSurf’s libcss and libwapcaplet.

This removes four submodules (two C libraries and their Rust bindings.)
This commit is contained in:
Simon Sapin 2013-10-23 13:14:25 +02:00
parent 86da932927
commit 2045f6a068
15 changed files with 2 additions and 242 deletions

View file

@ -20,11 +20,9 @@ use dom::text::Text;
use std::cast;
use std::cast::transmute;
use std::libc::c_void;
use std::unstable::raw::Box;
use extra::arc::Arc;
use js::jsapi::{JSObject, JSContext};
use netsurfcss::util::VoidPtrLike;
use style::ComputedValues;
use style::properties::PropertyDeclaration;
use servo_util::tree::{TreeNode, TreeNodeRef, TreeNodeRefAsElement};
@ -857,23 +855,6 @@ impl Node<ScriptView> {
}
}
/// The CSS library requires that DOM nodes be convertible to `*c_void` via the `VoidPtrLike`
/// trait.
impl VoidPtrLike for AbstractNode<LayoutView> {
fn from_void_ptr(node: *c_void) -> AbstractNode<LayoutView> {
assert!(node.is_not_null());
unsafe {
cast::transmute(node)
}
}
fn to_void_ptr(&self) -> *c_void {
unsafe {
cast::transmute(*self)
}
}
}
impl Reflectable for Node<ScriptView> {
fn reflector<'a>(&'a self) -> &'a Reflector {
&self.reflector_