mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 09:38:11 +00:00
LibWeb: Implement StyleComponentValueRule::to_string()
This commit is contained in:
parent
cf07da082e
commit
933a271a78
2 changed files with 20 additions and 0 deletions
|
@ -133,6 +133,25 @@ String StyleBlockRule::to_string() const
|
|||
return builder.to_string();
|
||||
}
|
||||
|
||||
String StyleComponentValueRule::to_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
switch (m_type) {
|
||||
case StyleComponentValueRule::ComponentType::Token:
|
||||
builder.append(m_token.to_string());
|
||||
break;
|
||||
case StyleComponentValueRule::ComponentType::Function:
|
||||
builder.append(m_function->to_string());
|
||||
break;
|
||||
case StyleComponentValueRule::ComponentType::Block:
|
||||
builder.append(m_block->to_string());
|
||||
break;
|
||||
}
|
||||
|
||||
return builder.to_string();
|
||||
}
|
||||
|
||||
String StyleComponentValueRule::to_debug_string() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue