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")]
|
||||
#[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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue