mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Update libcss, rust-netsurfcss, rust-css
This commit is contained in:
parent
6563859e80
commit
5dda40646e
5 changed files with 23 additions and 3 deletions
|
@ -1 +1 @@
|
|||
Subproject commit e86543f5f41108b1765087dfa2b11bdc159facf4
|
||||
Subproject commit fa72e6b29671d70bd866052e55c930249cd2a3f9
|
|
@ -1 +1 @@
|
|||
Subproject commit 45c54188a79c35920df145cda7295558e4956c8e
|
||||
Subproject commit 79a3ddccd05742980c5e27e48755bec807d4bd46
|
|
@ -1 +1 @@
|
|||
Subproject commit 7ee569d3e21ca2818f9bcc764a4abb313475e8cf
|
||||
Subproject commit 8b76c31e0d72b50630f56e5fb560eda4186c6796
|
19
src/servo/css/node_void_ptr.rs
Normal file
19
src/servo/css/node_void_ptr.rs
Normal file
|
@ -0,0 +1,19 @@
|
|||
//! CSS library requires that DOM nodes be convertable to *c_void through this trait
|
||||
|
||||
use dom::node::Node;
|
||||
|
||||
// FIXME: Rust #3908. rust-css can't reexport VoidPtrLike
|
||||
extern mod netsurfcss;
|
||||
use netsurfcss::VoidPtrLike;
|
||||
|
||||
impl Node: VoidPtrLike {
|
||||
static fn from_void_ptr(node: *libc::c_void) -> Node {
|
||||
assert node.is_not_null();
|
||||
unsafe { cast::reinterpret_cast(&node) }
|
||||
}
|
||||
|
||||
fn to_void_ptr(&self) -> *libc::c_void {
|
||||
let node: *libc::c_void = unsafe { cast::reinterpret_cast(self) };
|
||||
node
|
||||
}
|
||||
}
|
|
@ -48,6 +48,7 @@ pub mod css {
|
|||
pub mod compute;
|
||||
priv mod select_handler;
|
||||
priv mod node_util;
|
||||
priv mod node_void_ptr;
|
||||
}
|
||||
|
||||
pub mod layout {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue