aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/table/construct.rs
diff options
context:
space:
mode:
authorMartin Robinson <mrobinson@igalia.com>2024-01-23 13:55:01 +0100
committerGitHub <noreply@github.com>2024-01-23 12:55:01 +0000
commit54fb381a0a4c070bac75e9f602bf905fa101194d (patch)
tree1a40ea5debfe55b81df1c4b445475a1abc508bf4 /components/layout_2020/table/construct.rs
parent890588945d2f0b9ad28d024d5a1ba2fb85542637 (diff)
downloadservo-54fb381a0a4c070bac75e9f602bf905fa101194d.tar.gz
servo-54fb381a0a4c070bac75e9f602bf905fa101194d.zip
layout: Convert layout internal display to inline for replaced elements (#31133)
Replaced elements should never be able to have a layout internal display, according to the specification. This change makes it so that the used value of replaced element's display is always inline, as the specification says.
Diffstat (limited to 'components/layout_2020/table/construct.rs')
-rw-r--r--components/layout_2020/table/construct.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/components/layout_2020/table/construct.rs b/components/layout_2020/table/construct.rs
index 3dd0c01e977..bd183a2519d 100644
--- a/components/layout_2020/table/construct.rs
+++ b/components/layout_2020/table/construct.rs
@@ -679,7 +679,7 @@ where
)
},
Err(_replaced) => {
- panic!("We don't handle this yet.");
+ unreachable!("Replaced should not have a LayoutInternal display type.");
},
};