mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:57:35 +00:00
LibWeb: Replace to_px() with to_px_or_zero() in InlineFormattingContext
to_px() usage should be avoided because it might leak saturated (infinite) values into layout calculations.
This commit is contained in:
parent
4646867a9f
commit
fce4801460
7 changed files with 29 additions and 21 deletions
|
@ -121,7 +121,7 @@ void InlineLevelIterator::skip_to_next()
|
|||
compute_next();
|
||||
}
|
||||
|
||||
Optional<InlineLevelIterator::Item> InlineLevelIterator::next(CSSPixels available_width)
|
||||
Optional<InlineLevelIterator::Item> InlineLevelIterator::next(AvailableSize available_width)
|
||||
{
|
||||
if (!m_current_node)
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue