mirror of
https://github.com/servo/servo.git
synced 2025-08-05 21:50:18 +01:00
Further changes required by Servo
This commit is contained in:
parent
6ea75b0646
commit
1beb9880a9
2 changed files with 2 additions and 2 deletions
|
@ -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| {
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue