aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--components/style/font_face.rs3
-rw-r--r--tests/unit/style/stylesheets.rs1
2 files changed, 2 insertions, 2 deletions
diff --git a/components/style/font_face.rs b/components/style/font_face.rs
index ae35bd793e6..f1b4651c769 100644
--- a/components/style/font_face.rs
+++ b/components/style/font_face.rs
@@ -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| {
diff --git a/tests/unit/style/stylesheets.rs b/tests/unit/style/stylesheets.rs
index 3ec6c0ff71e..f1e8cc3b690 100644
--- a/tests/unit/style/stylesheets.rs
+++ b/tests/unit/style/stylesheets.rs
@@ -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