mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
css, gfx, layout, submodules: Update for compiler bugfixes
This commit is contained in:
parent
80aa0e904d
commit
ca217b4f75
4 changed files with 9 additions and 4 deletions
|
@ -1 +1 @@
|
|||
Subproject commit 3bbe4ed4fc3d642e1e651ff3d8123c9dca626c22
|
||||
Subproject commit 55ef54e4bb4f2a69f80827d899a739f322ab323e
|
|
@ -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 {
|
||||
|
|
|
@ -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 {
|
||||
|
|
|
@ -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;
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue