Store COW strings in CSS parser errors when possible.

This commit is contained in:
Josh Matthews 2017-07-19 12:57:07 -04:00
parent 2bb4f65100
commit bbf3280fef
3 changed files with 3 additions and 3 deletions

View file

@ -224,7 +224,7 @@ impl<'a> ErrorHelpers<'a> for ContextualParseError<'a> {
(_, CssParseError::Custom(SelectorParseError::Custom(
StyleParseError::PropertyDeclaration(
PropertyDeclarationParseError::InvalidValue(property))))) =>
ErrorString::Snippet(property.into()),
ErrorString::Snippet(property),
(_, CssParseError::Custom(SelectorParseError::UnexpectedIdent(ident))) =>
ErrorString::Ident(ident),