diff options
author | Glenn Watson <github@intuitionlibrary.com> | 2017-10-26 06:57:11 +1000 |
---|---|---|
committer | Glenn Watson <github@intuitionlibrary.com> | 2017-10-26 07:37:14 +1000 |
commit | 47544b2d2874c2bc520e2b5b09a085abef48b745 (patch) | |
tree | 603b3c48284e9eb86c3b7cb9a9873992eef1b5f8 /components/layout/webrender_helpers.rs | |
parent | ce890be0b958dd4623defd789c19e02f4da6ea1d (diff) | |
download | servo-47544b2d2874c2bc520e2b5b09a085abef48b745.tar.gz servo-47544b2d2874c2bc520e2b5b09a085abef48b745.zip |
Update WR (line decorations, pre-mul borders, mac fonts)
Diffstat (limited to 'components/layout/webrender_helpers.rs')
-rw-r--r-- | components/layout/webrender_helpers.rs | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/components/layout/webrender_helpers.rs b/components/layout/webrender_helpers.rs index bed47cfb4d6..4ed2125fea5 100644 --- a/components/layout/webrender_helpers.rs +++ b/components/layout/webrender_helpers.rs @@ -460,14 +460,11 @@ impl WebRenderDisplayItemConverter for DisplayItem { webrender_api::LayoutSize::zero()); } DisplayItem::Line(ref item) => { - let box_bounds = item.base.bounds.to_rectf(); builder.push_line(&self.prim_info(), - box_bounds.origin.y + box_bounds.size.height, - box_bounds.origin.x, - box_bounds.origin.x + box_bounds.size.width, + // TODO(gw): Use a better estimate for wavy line thickness. + (0.33 * item.base.bounds.size.height.to_f32_px()).ceil(), webrender_api::LineOrientation::Horizontal, - box_bounds.size.height, - item.color, + &item.color, item.style); } DisplayItem::BoxShadow(ref item) => { |