From c6dfe534833773c5d5399ec6fcddf2c8a1967a5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20Cobos=20=C3=81lvarez?= Date: Sun, 2 Dec 2018 13:37:12 -0500 Subject: [PATCH] Fix servo build. --- components/layout/display_list/builder.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/components/layout/display_list/builder.rs b/components/layout/display_list/builder.rs index c68853b9149..3f474af6f1e 100644 --- a/components/layout/display_list/builder.rs +++ b/components/layout/display_list/builder.rs @@ -1499,8 +1499,11 @@ impl FragmentDisplayListBuilding for Fragment { let outline_style = match style.get_outline().outline_style { OutlineStyle::Auto => BorderStyle::Solid, - OutlineStyle::Other(BorderStyle::None) => return, - OutlineStyle::Other(border_style) => border_style, + // FIXME(emilio): I don't think this border-style check is + // necessary, since border-style: none implies an outline-width of + // zero at computed value time. + OutlineStyle::BorderStyle(BorderStyle::None) => return, + OutlineStyle::BorderStyle(s) => s, }; // Outlines are not accounted for in the dimensions of the border box, so adjust the