Skip to content

Commit

Permalink
Fix servo build.
Browse files Browse the repository at this point in the history
  • Loading branch information
emilio committed Dec 2, 2018
1 parent edf4b01 commit c6dfe53
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions components/layout/display_list/builder.rs
Expand Up @@ -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
Expand Down

0 comments on commit c6dfe53

Please sign in to comment.