mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +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")]
|
#[cfg(feature = "servo")]
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
#[cfg_attr(feature = "servo", derive(Deserialize, Serialize))]
|
||||||
pub struct EffectiveSources(SourceList);
|
pub struct EffectiveSources(Vec<Source>);
|
||||||
|
|
||||||
#[cfg(feature = "servo")]
|
#[cfg(feature = "servo")]
|
||||||
impl<'a> FontFace<'a> {
|
impl<'a> FontFace<'a> {
|
||||||
|
@ -502,6 +502,7 @@ impl<'a> FontFace<'a> {
|
||||||
pub fn effective_sources(&self) -> EffectiveSources {
|
pub fn effective_sources(&self) -> EffectiveSources {
|
||||||
EffectiveSources(
|
EffectiveSources(
|
||||||
self.sources()
|
self.sources()
|
||||||
|
.0
|
||||||
.iter()
|
.iter()
|
||||||
.rev()
|
.rev()
|
||||||
.filter(|source| {
|
.filter(|source| {
|
||||||
|
|
|
@ -119,7 +119,6 @@ fn test_report_error_stylesheet() {
|
||||||
), // FIXME: column should be around 56
|
), // FIXME: column should be around 56
|
||||||
(10, 17, "Unsupported property declaration: 'invalid: true;'"),
|
(10, 17, "Unsupported property declaration: 'invalid: true;'"),
|
||||||
(12, 28, "Invalid media rule"),
|
(12, 28, "Invalid media rule"),
|
||||||
(13, 30, "Unsupported @font-face descriptor declaration"),
|
|
||||||
// When @counter-style is supported, this should be replaced with two errors
|
// When @counter-style is supported, this should be replaced with two errors
|
||||||
(14, 19, "Invalid rule: '@counter-style "),
|
(14, 19, "Invalid rule: '@counter-style "),
|
||||||
// When @font-feature-values is supported, this should be replaced with two errors
|
// When @font-feature-values is supported, this should be replaced with two errors
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue