LibWeb: Implement TransformationStyleValue::to_string()

This commit is contained in:
Sam Atkins 2022-02-02 21:19:43 +00:00 committed by Andreas Kling
parent 5826fe094f
commit 181d1e2dd6
Notes: sideshowbarker 2024-07-17 19:52:15 +09:00

View File

@ -582,7 +582,21 @@ String TextDecorationStyleValue::to_string() const
String TransformationStyleValue::to_string() const
{
return "TransformationStyleValue";
StringBuilder builder;
switch (m_transform_function) {
case TransformFunction::TranslateY:
builder.append("translateY");
break;
default:
VERIFY_NOT_REACHED();
}
builder.append('(');
builder.join(", ", m_values);
builder.append(')');
return builder.to_string();
}
String UnresolvedStyleValue::to_string() const