mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 21:07:35 +00:00
LibWeb: Fix RectStyleValue to_string() implementation
Fix implementation of to_string() for RectStyleValue so that it can be used by JS.
This commit is contained in:
parent
cf33d0b5f7
commit
6b2e93eb7c
1 changed files with 1 additions and 1 deletions
|
@ -1684,7 +1684,7 @@ bool PositionStyleValue::equals(StyleValue const& other) const
|
|||
|
||||
String RectStyleValue::to_string() const
|
||||
{
|
||||
return String::formatted("top_edge: {}, right_edge: {}, bottom_edge: {}, left_edge: {}", m_rect.top_edge, m_rect.right_edge, m_rect.bottom_edge, m_rect.left_edge);
|
||||
return String::formatted("rect({} {} {} {})", m_rect.top_edge, m_rect.right_edge, m_rect.bottom_edge, m_rect.left_edge);
|
||||
}
|
||||
|
||||
bool RectStyleValue::equals(StyleValue const& other) const
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue