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:
parent
75db8b1f86
commit
6a0adbefc7
3 changed files with 16 additions and 12 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue