mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-29 12:49:08 +00:00
LibWeb/CSS: Add dump method to CalculatedStyleValue
The individual nodes all have dump methods, but there was no way of calling them from the outside. So now there is.
This commit is contained in:
@@ -2766,4 +2766,11 @@ bool CalculatedStyleValue::contains_percentage() const
|
||||
return m_calculation->contains_percentage();
|
||||
}
|
||||
|
||||
String CalculatedStyleValue::dump() const
|
||||
{
|
||||
StringBuilder builder;
|
||||
m_calculation->dump(builder, 0);
|
||||
return builder.to_string_without_validation();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user