aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout/generated_content.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2023-06-27 21:43:56 +0200
committerMartin Robinson <mrobinson@igalia.com>2023-06-28 16:06:07 +0200
commitd4b5fc1f653b4575202416263155ec17083828a6 (patch)
tree0a6944aafdbdcc6078eda8d3239e419ee2f619f1 /components/layout/generated_content.rs
parenta725380db0b9fba31993409f7d0f4b2d11ca8f7d (diff)
downloadservo-d4b5fc1f653b4575202416263155ec17083828a6.tar.gz
servo-d4b5fc1f653b4575202416263155ec17083828a6.zip
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.
Diffstat (limited to 'components/layout/generated_content.rs')
-rw-r--r--components/layout/generated_content.rs9
1 files changed, 4 insertions, 5 deletions
diff --git a/components/layout/generated_content.rs b/components/layout/generated_content.rs
index 89f65732761..90e17fe3e8c 100644
--- a/components/layout/generated_content.rs
+++ b/components/layout/generated_content.rs
@@ -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.
},
}
};