Use specific assertion for specified text

This commit is contained in:
CYBAI 2018-01-25 23:51:23 +08:00
parent f81ba5e9dd
commit e4799cc997

View file

@ -230,7 +230,7 @@ impl ToComputedValue for TextOverflow {
#[inline]
fn from_computed_value(computed: &Self::ComputedValue) -> Self {
if computed.sides_are_logical {
assert!(computed.first == TextOverflowSide::Clip);
assert_eq!(computed.first, TextOverflowSide::Clip);
TextOverflow {
first: computed.second.clone(),
second: None,