1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:37:35 +00:00

LibWeb: Apply the current text-justify value when justifying

This implements at least some of the specification. inter-character is
not yet handled. However as our current algorithm only considers
whitespace as word breaks, inter-word could technically be considered to
be handled. :^)
This commit is contained in:
sin-ack 2022-03-12 19:32:03 +00:00 committed by Andreas Kling
parent 0679eadd62
commit b801ddf73d
2 changed files with 14 additions and 3 deletions

View file

@ -36,7 +36,7 @@ public:
private:
void generate_line_boxes(LayoutMode);
void apply_justification_to_fragments(FormattingState::NodeState const& containing_block_state, LineBox&, bool is_last_line);
void apply_justification_to_fragments(FormattingState::NodeState const& containing_block_state, CSS::TextJustify, LineBox&, bool is_last_line);
};
}