Upgrade stylo to 2024-05-15 (#32334)

* Upgrade stylo to 2024-05-15

* Fixup for https://phabricator.services.mozilla.com/D208599

* Fixup for https://phabricator.services.mozilla.com/D208569

* Fixup for https://phabricator.services.mozilla.com/D207796

* Fixup for https://phabricator.services.mozilla.com/D209690

* hashbrown and indexmap are no longer duplicated
This commit is contained in:
Oriol Brufau 2024-05-27 17:24:34 +02:00 committed by GitHub
parent 43a3c9c319
commit 453ac11e3d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 47 additions and 75 deletions

View file

@ -105,7 +105,7 @@ where
let style = self.as_element().unwrap().resolved_style();
return TextContent::GeneratedContent(match style.as_ref().get_counters().content {
Content::Items(ref value) => value.to_vec(),
Content::Items(ref value) => value.items.to_vec(),
_ => vec![],
});
}

View file

@ -366,7 +366,7 @@ where
match &pseudo_element_style.get_counters().content {
Content::Items(ref items) => {
let mut vec = vec![];
for item in items.iter() {
for item in items.items.iter() {
match item {
ContentItem::String(s) => {
vec.push(PseudoElementContentItem::Text(s.to_string()));

View file

@ -1397,7 +1397,7 @@ impl LayoutThread {
);
// Preserve any previously computed root font size.
device.set_root_font_size(self.stylist.device().root_font_size());
device.set_root_font_size(self.stylist.device().root_font_size().px());
let sheet_origins_affected_by_device_change = self.stylist.set_device(device, guards);
self.stylist

View file

@ -1029,7 +1029,7 @@ impl LayoutThread {
);
// Preserve any previously computed root font size.
device.set_root_font_size(self.stylist.device().root_font_size());
device.set_root_font_size(self.stylist.device().root_font_size().px());
let sheet_origins_affected_by_device_change = self.stylist.set_device(device, guards);
self.stylist