mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-21 08:48:57 +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
Notes:
sideshowbarker
2024-07-17 20:22:04 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: fce4801460
Pull-request: https://github.com/SerenityOS/serenity/pull/20528
7 changed files with 29 additions and 21 deletions
|
@ -30,7 +30,7 @@ public:
|
|||
void dimension_box_on_line(Box const&, LayoutMode);
|
||||
|
||||
CSSPixels leftmost_x_offset_at(CSSPixels y) const;
|
||||
CSSPixels available_space_for_line(CSSPixels y) const;
|
||||
AvailableSize available_space_for_line(CSSPixels y) const;
|
||||
bool any_floats_intrude_at_y(CSSPixels y) const;
|
||||
bool can_fit_new_line_at_y(CSSPixels y) const;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue