mirror of
https://github.com/servo/servo.git
synced 2025-06-20 15:18:58 +01:00
Remove (now unused) NetSurf’s libcss and libwapcaplet.
This removes four submodules (two C libraries and their Rust bindings.)
This commit is contained in:
parent
86da932927
commit
2045f6a068
15 changed files with 2 additions and 242 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue