mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Add unicode-range descriptor to @font-face
This commit is contained in:
parent
0f351cb851
commit
4701850f37
2 changed files with 62 additions and 7 deletions
|
@ -11,6 +11,7 @@ use error_reporting::ParseErrorReporter;
|
|||
#[cfg(feature = "gecko")]
|
||||
use gecko_bindings::sugar::refptr::{GeckoArcPrincipal, GeckoArcURI};
|
||||
use servo_url::ServoUrl;
|
||||
use style_traits::CommaSeparated;
|
||||
use stylesheets::{MemoryHoleReporter, Origin};
|
||||
|
||||
/// Extra data that the style backend may need to parse stylesheets.
|
||||
|
@ -102,3 +103,9 @@ pub trait Parse : Sized {
|
|||
/// Returns an error on failure.
|
||||
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()>;
|
||||
}
|
||||
|
||||
impl<T> Parse for Vec<T> where T: Parse + CommaSeparated {
|
||||
fn parse(context: &ParserContext, input: &mut Parser) -> Result<Self, ()> {
|
||||
input.parse_comma_separated(|input| T::parse(context, input))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue