Finish plumbing intrinsic min/max-content through box construction

This commit is contained in:
Simon Sapin 2019-12-03 02:19:48 +01:00
parent da36fcddb0
commit c056e5b6b0
5 changed files with 80 additions and 39 deletions

View file

@ -192,8 +192,7 @@ impl<Node> Contents<Node> {
/// Returns true iff the `try_from` impl below would return `Err(_)`
pub fn is_replaced(&self) -> bool {
match self {
Contents::OfElement(_) |
Contents::OfPseudoElement(_) => false,
Contents::OfElement(_) | Contents::OfPseudoElement(_) => false,
Contents::Replaced(_) => true,
}
}