1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:48:12 +00:00

LibWeb: Tidy up StyleRule API

Constantly accessing private `m_foo` fields feels uncomfortable and
doesn't fit well with our code style.
This commit is contained in:
Sam Atkins 2022-03-30 16:42:43 +01:00 committed by Andreas Kling
parent 75db8b1f86
commit 6a0adbefc7
3 changed files with 16 additions and 12 deletions

View file

@ -98,9 +98,9 @@ String StyleRule::to_string() const
{
StringBuilder builder;
if (m_type == Type::At) {
if (is_at_rule()) {
builder.append("@");
serialize_an_identifier(builder, m_name);
serialize_an_identifier(builder, m_at_rule_name);
}
append_with_to_string(builder, " ", m_prelude);