mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Report more specific error for invalid filter properties (bug 1386900).
This commit is contained in:
parent
00867711b3
commit
6827a10893
3 changed files with 21 additions and 5 deletions
|
@ -132,6 +132,14 @@ pub enum StyleParseError<'i> {
|
|||
pub enum ValueParseError<'i> {
|
||||
/// An invalid token was encountered while parsing a color value.
|
||||
InvalidColor(Token<'i>),
|
||||
/// An invalid filter value was encountered.
|
||||
InvalidFilter(Token<'i>),
|
||||
}
|
||||
|
||||
impl<'a> From<ValueParseError<'a>> for ParseError<'a> {
|
||||
fn from(this: ValueParseError<'a>) -> Self {
|
||||
StyleParseError::ValueError(this).into()
|
||||
}
|
||||
}
|
||||
|
||||
impl<'i> ValueParseError<'i> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue