layout: Fix servo build.

TextAlign now implements FromPrimitive instead of an ad-hoc method.
This commit is contained in:
Emilio Cobos Álvarez 2018-11-10 20:30:51 +01:00
parent c6ead1dc0e
commit 48ce20b6fe
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C
3 changed files with 3 additions and 0 deletions

1
Cargo.lock generated
View file

@ -1930,6 +1930,7 @@ dependencies = [
"malloc_size_of 0.0.1",
"msg 0.0.1",
"net_traits 0.0.1",
"num-traits 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)",
"ordered-float 1.0.0 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.6.3 (registry+https://github.com/rust-lang/crates.io-index)",
"profile_traits 0.0.1",

View file

@ -29,6 +29,7 @@ log = "0.4"
malloc_size_of = { path = "../malloc_size_of" }
msg = {path = "../msg"}
net_traits = {path = "../net_traits"}
num-traits = "0.2"
ordered-float = "1.0"
parking_lot = "0.6"
profile_traits = {path = "../profile_traits"}

View file

@ -49,6 +49,7 @@ use crate::table_wrapper::TableWrapperFlow;
use euclid::{Point2D, Rect, Size2D, Vector2D};
use gfx_traits::print_tree::PrintTree;
use gfx_traits::StackingContextId;
use num_traits::cast::FromPrimitive;
use serde::ser::{Serialize, SerializeStruct, Serializer};
use servo_geometry::{au_rect_to_f32_rect, f32_rect_to_au_rect, MaxRect};
use std::fmt;