mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 16:15:10 +00:00
LibHTML: Fix incorrect CSS object model
A StyleRule has a StyleDeclaration which has many StyleProperty. :^)
This commit is contained in:
parent
ac20919b13
commit
8d797fc62e
7 changed files with 26 additions and 31 deletions
|
@ -123,8 +123,8 @@ void dump_rule(const StyleRule& rule)
|
|||
}
|
||||
}
|
||||
printf(" Declarations:\n");
|
||||
for (auto& declaration : rule.declarations()) {
|
||||
printf(" '%s': '%s'\n", declaration.property_name().characters(), declaration.value().to_string().characters());
|
||||
for (auto& property : rule.declaration().properties()) {
|
||||
printf(" '%s': '%s'\n", property.name.characters(), property.value->to_string().characters());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue