From f17bee0cb5c4fc9e8c61c9b46079cf532b08c05b Mon Sep 17 00:00:00 2001 From: Cameron Youell Date: Sun, 26 Mar 2023 22:25:53 +1100 Subject: [PATCH] LibWeb: Fix mistype in `LayoutState` --- Userland/Libraries/LibWeb/Layout/LayoutState.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/Layout/LayoutState.cpp b/Userland/Libraries/LibWeb/Layout/LayoutState.cpp index 0b68f3edf1..192fc16d15 100644 --- a/Userland/Libraries/LibWeb/Layout/LayoutState.cpp +++ b/Userland/Libraries/LibWeb/Layout/LayoutState.cpp @@ -327,7 +327,7 @@ void LayoutState::UsedValues::set_node(NodeWithStyleAndBoxModelMetrics& node, Us void LayoutState::UsedValues::set_content_width(CSSPixels width) { if (width < 0) { - // Negative heights are not allowed in CSS. We have a bug somewhere! Clamp to 0 to avoid doing too much damage. + // Negative widths are not allowed in CSS. We have a bug somewhere! Clamp to 0 to avoid doing too much damage. dbgln("FIXME: Layout calculated a negative width for {}: {}", m_node->debug_description(), width); width = 0; }