瀏覽代碼

LibWeb: Fix mistype in `LayoutState`

Cameron Youell 2 年之前
父節點
當前提交
f17bee0cb5
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Userland/Libraries/LibWeb/Layout/LayoutState.cpp

+ 1 - 1
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;
     }