1
Fork 0
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:
Tom 2022-08-08 03:35:50 +02:00 committed by Andreas Kling
parent cf33d0b5f7
commit 6b2e93eb7c

View file

@ -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