Further changes required by Servo

This commit is contained in:
Oriol Brufau 2023-05-16 09:40:29 +02:00
parent 4cee8cf937
commit 108c50c6df
3 changed files with 16 additions and 4 deletions

View file

@ -354,9 +354,9 @@ where
attr_val.map_or("".to_string(), |s| s.to_string()),
));
},
ContentItem::Url(image_url) => {
ContentItem::Image(image) => {
if let Some(replaced_content) =
ReplacedContent::from_image_url(element, context, image_url)
ReplacedContent::from_image(element, context, image)
{
vec.push(PseudoElementContentItem::Replaced(replaced_content));
}