From 6b2e93eb7c716b207d95871a914aeb75284032a4 Mon Sep 17 00:00:00 2001 From: Tom Date: Mon, 8 Aug 2022 03:35:50 +0200 Subject: [PATCH] LibWeb: Fix RectStyleValue to_string() implementation Fix implementation of to_string() for RectStyleValue so that it can be used by JS. --- Userland/Libraries/LibWeb/CSS/StyleValue.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp index ae8d80bfaf..debeddd600 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp @@ -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