Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-10-31 22:32:13 +01:00 committed by Martin Robinson
parent 6ea75b0646
commit 1beb9880a9
2 changed files with 2 additions and 2 deletions

View file

@ -492,7 +492,7 @@ pub struct FontFace<'a>(&'a FontFaceRuleData);
#[cfg(feature = "servo")]
#[derive(Clone, Debug)]
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
pub struct EffectiveSources(SourceList);
pub struct EffectiveSources(Vec<Source>);
#[cfg(feature = "servo")]
impl<'a> FontFace<'a> {
@ -502,6 +502,7 @@ impl<'a> FontFace<'a> {
pub fn effective_sources(&self) -> EffectiveSources {
EffectiveSources(
self.sources()
.0
.iter()
.rev()
.filter(|source| {

View file

@ -119,7 +119,6 @@ fn test_report_error_stylesheet() {
), // FIXME: column should be around 56
(10, 17, "Unsupported property declaration: 'invalid: true;'"),
(12, 28, "Invalid media rule"),
(13, 30, "Unsupported @font-face descriptor declaration"),
// When @counter-style is supported, this should be replaced with two errors
(14, 19, "Invalid rule: '@counter-style "),
// When @font-feature-values is supported, this should be replaced with two errors