css, gfx, layout, submodules: Update for compiler bugfixes

This commit is contained in:
Patrick Walton 2012-11-15 17:34:18 -08:00
parent 80aa0e904d
commit ca217b4f75
4 changed files with 9 additions and 4 deletions

@ -1 +1 @@
Subproject commit 3bbe4ed4fc3d642e1e651ff3d8123c9dca626c22
Subproject commit 55ef54e4bb4f2a69f80827d899a739f322ab323e

View file

@ -107,7 +107,12 @@ enum CSSFontWeight {
FontWeight800,
FontWeight900,
}
pub impl CSSFontWeight : cmp::Eq;
pub impl CSSFontWeight : cmp::Eq {
pure fn eq(other: &CSSFontWeight) -> bool {
(self as uint) == (*other as uint)
}
pure fn ne(other: &CSSFontWeight) -> bool { !self.eq(other) }
}
pub impl CSSFontWeight {
pub pure fn is_bold() -> bool {

View file

@ -4,7 +4,7 @@ use dom::node::Node;
// FIXME: Rust #3908. rust-css can't reexport VoidPtrLike
extern mod netsurfcss;
use netsurfcss::VoidPtrLike;
use netsurfcss::util::VoidPtrLike;
impl Node: VoidPtrLike {
static fn from_void_ptr(node: *libc::c_void) -> Node {

View file

@ -13,7 +13,7 @@ use gfx::font::FontStyle;
use gfx::geometry::Au;
use gfx::text::util::*;
use gfx::util::range::{MutableRange, Range};
use newcss::values::{BoxAuto, BoxLength, Px};
use newcss::units::{BoxAuto, BoxLength, Px};
use std::arc;
/*