diff options
author | Simon Sapin <simon.sapin@exyr.org> | 2015-01-06 20:34:46 +0000 |
---|---|---|
committer | Simon Sapin <simon.sapin@exyr.org> | 2015-01-21 22:23:46 +0100 |
commit | d034a6c6bc5a473bad38b2ad00d2a08a0361138c (patch) | |
tree | 084e217ddd0c9ec710f5d77578a80c1ae358ade4 /components/layout | |
parent | ad328fda65e6b7180de8b47f0964fe2f94c505a9 (diff) | |
download | servo-d034a6c6bc5a473bad38b2ad00d2a08a0361138c.tar.gz servo-d034a6c6bc5a473bad38b2ad00d2a08a0361138c.zip |
Port to the new cssparser.
https://github.com/servo/rust-cssparser/pull/68
Diffstat (limited to 'components/layout')
-rw-r--r-- | components/layout/display_list_builder.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/components/layout/display_list_builder.rs b/components/layout/display_list_builder.rs index 2e4ae665ea9..b866ae2c2fd 100644 --- a/components/layout/display_list_builder.rs +++ b/components/layout/display_list_builder.rs @@ -46,8 +46,8 @@ use servo_util::opts; use std::default::Default; use std::iter::repeat; use std::num::FloatMath; -use style::computed::{AngleOrCorner, LengthOrPercentage, HorizontalDirection, VerticalDirection}; -use style::computed::{Image, LinearGradient}; +use style::values::specified::{AngleOrCorner, HorizontalDirection, VerticalDirection}; +use style::computed::{Image, LinearGradient, LengthOrPercentage}; use style::computed_values::filter::Filter; use style::computed_values::{background_attachment, background_repeat, border_style, overflow}; use style::computed_values::{position, visibility}; @@ -222,13 +222,13 @@ fn build_border_radius(abs_bounds: &Rect<Au>, border_style: &Border) -> BorderRa // radii will be relative to the width. BorderRadii { - top_left: model::specified(border_style.border_top_left_radius.radius, + top_left: model::specified(border_style.border_top_left_radius, abs_bounds.size.width), - top_right: model::specified(border_style.border_top_right_radius.radius, + top_right: model::specified(border_style.border_top_right_radius, abs_bounds.size.width), - bottom_right: model::specified(border_style.border_bottom_right_radius.radius, + bottom_right: model::specified(border_style.border_bottom_right_radius, abs_bounds.size.width), - bottom_left: model::specified(border_style.border_bottom_left_radius.radius, + bottom_left: model::specified(border_style.border_bottom_left_radius, abs_bounds.size.width), } } |