1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 02:35:09 +00:00

LibHTML: Use NonnullRefPtrVector in LibHTML.

This commit is contained in:
Andreas Kling 2019-06-27 12:16:20 +02:00
parent 48108ec474
commit 7cc9ce8380
5 changed files with 15 additions and 15 deletions

View file

@ -73,7 +73,7 @@ void dump_sheet(const StyleSheet& sheet)
for (auto& rule : sheet.rules()) {
printf("Rule:\n");
for (auto& selector : rule->selectors()) {
for (auto& selector : rule.selectors()) {
printf(" Selector:\n");
for (auto& component : selector.components()) {
const char* type_description = "Unknown";
@ -95,7 +95,7 @@ void dump_sheet(const StyleSheet& sheet)
}
}
printf(" Declarations:\n");
rule->for_each_declaration([](auto& declaration) {
rule.for_each_declaration([](auto& declaration) {
printf(" '%s': '%s'\n", declaration.property_name().characters(), declaration.value().to_string().characters());
});
}