1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:38:11 +00:00

LibWeb: Make LineBox take incoming fragment size as floats

This commit is contained in:
Andreas Kling 2020-12-04 21:06:27 +01:00
parent 52d993cfa8
commit 90b12a41c8
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@
namespace Web::Layout {
void LineBox::add_fragment(Node& layout_node, int start, int length, int width, int height, LineBoxFragment::Type fragment_type)
void LineBox::add_fragment(Node& layout_node, int start, int length, float width, float height, LineBoxFragment::Type fragment_type)
{
bool text_align_is_justify = layout_node.style().text_align() == CSS::TextAlign::Justify;
if (!text_align_is_justify && !m_fragments.is_empty() && &m_fragments.last().layout_node() == &layout_node) {