LibWeb: Make StyleSheetList GC-allocated

This commit is contained in:
Andreas Kling 2022-08-07 13:29:49 +02:00
commit 5366924f11
Notes: sideshowbarker 2024-07-17 20:58:35 +09:00
14 changed files with 68 additions and 37 deletions

View file

@ -140,7 +140,7 @@ void StyleComputer::for_each_stylesheet(CascadeOrigin cascade_origin, Callback c
}
if (cascade_origin == CascadeOrigin::Author) {
for (auto const& sheet : document().style_sheets().sheets()) {
callback(*sheet);
callback(sheet);
}
}
}