mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 04:17:34 +00:00
LibWeb: Fix mistype in LayoutState
This commit is contained in:
parent
30b3c30aba
commit
f17bee0cb5
1 changed files with 1 additions and 1 deletions
|
@ -327,7 +327,7 @@ void LayoutState::UsedValues::set_node(NodeWithStyleAndBoxModelMetrics& node, Us
|
||||||
void LayoutState::UsedValues::set_content_width(CSSPixels width)
|
void LayoutState::UsedValues::set_content_width(CSSPixels width)
|
||||||
{
|
{
|
||||||
if (width < 0) {
|
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);
|
dbgln("FIXME: Layout calculated a negative width for {}: {}", m_node->debug_description(), width);
|
||||||
width = 0;
|
width = 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue