mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Introduce Separator::parse
This commit is contained in:
parent
6c17bb03ce
commit
17875b8a81
6 changed files with 59 additions and 26 deletions
|
@ -22,7 +22,7 @@ use properties::longhands::font_language_override;
|
|||
use selectors::parser::SelectorParseError;
|
||||
use shared_lock::{SharedRwLockReadGuard, ToCssWithGuard};
|
||||
use std::fmt;
|
||||
use style_traits::{ToCss, OneOrMoreSeparated, CommaSeparator, ParseError, StyleParseError};
|
||||
use style_traits::{Comma, OneOrMoreSeparated, ParseError, StyleParseError, ToCss};
|
||||
use values::specified::url::SpecifiedUrl;
|
||||
|
||||
/// A source for a font-face rule.
|
||||
|
@ -37,7 +37,7 @@ pub enum Source {
|
|||
}
|
||||
|
||||
impl OneOrMoreSeparated for Source {
|
||||
type S = CommaSeparator;
|
||||
type S = Comma;
|
||||
}
|
||||
|
||||
/// A `UrlSource` represents a font-face source that has been specified with a
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue