Gecko:LineBreakerAPI: Difference between revisions

Jump to navigation Jump to search
Line 6: Line 6:
* The run of text can contain text from different DOM nodes
* The run of text can contain text from different DOM nodes
* We only need to compute linebreaks for some parts of the text (for other parts of the text we already know the linebreaks or there can't be linebreaks because of CSS white-space override)
* We only need to compute linebreaks for some parts of the text (for other parts of the text we already know the linebreaks or there can't be linebreaks because of CSS white-space override)
* There should only be ONE linebreaker algorithm seen by layout. If we need language-specific behaviour, the linebreaker should implement that internally.
* There should only be ONE linebreaker algorithm seen by layout. If we need language-specific behaviour, the linebreaker should implement that internally. So Thai text will have to be handled by detecting Thai characters and applying the Thai algorithm to the Thai parts of the string.


=== Suggestion ===
=== Suggestion ===
1,295

edits

Navigation menu