mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Make Layout 2013 style a superset of Layout 2020 style
This is the first step toward removing the compile-time difference in style between Layout 2020 and Layout 2013.
This commit is contained in:
parent
a725380db0
commit
d4b5fc1f65
97 changed files with 32 additions and 349 deletions
|
@ -198,10 +198,6 @@ impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
|
|||
RenderingMode::Suffix(".\u{00a0}"),
|
||||
)
|
||||
},
|
||||
GeneratedContentInfo::Empty |
|
||||
GeneratedContentInfo::ContentItem(ContentItem::String(_)) => {
|
||||
// Nothing to do here.
|
||||
},
|
||||
GeneratedContentInfo::ContentItem(ContentItem::Counter(
|
||||
ref counter_name,
|
||||
counter_style,
|
||||
|
@ -272,8 +268,11 @@ impl<'a, 'b> ResolveGeneratedContentFragmentMutator<'a, 'b> {
|
|||
self.traversal.quote -= 1
|
||||
}
|
||||
},
|
||||
GeneratedContentInfo::Empty |
|
||||
GeneratedContentInfo::ContentItem(ContentItem::String(_)) |
|
||||
GeneratedContentInfo::ContentItem(ContentItem::Attr(_)) |
|
||||
GeneratedContentInfo::ContentItem(ContentItem::Image(..)) => {
|
||||
unreachable!("Servo doesn't parse content: url(..) nor image-set(..) yet")
|
||||
// Nothing to do here.
|
||||
},
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue