A long text (more than 65535 characters) without spaces doesn't appear. The attached file reproduces the problem. This comes from an overflow of the m_len member variable in InlineTextBox. It's type is unsigned short, but InlineTextBox::setLen() takes unsigned as the argument, so an overflow will occur when the text length is more than 65535. We might need to change the type of m_len to unsigned or truncate the text. Firefox renders a long text without truncation. Since changing the type of the m_len increases the size of InlineTextBox, I'm not sure which way is better.
Created attachment 96058 [details] test page
Created attachment 96059 [details] A tentative patch
(In reply to comment #2) > Created an attachment (id=96059) [details] > A tentative patch A patch to change the type of m_len to unsigned. Not including tests and ChangeLog because I'd like to ask suggestion before going forward with it.
The effect on memory use may be a problem indeed. See also: bug 29636, bug 28201.
Hi Alexey, (In reply to comment #4) > The effect on memory use may be a problem indeed. IMHO, truncating text might be better because it would be rare that a page contains such long text (without spaces), while increasing the size of InlineTextBox will impact almost all pages. > See also: bug 29636, bug 28201. Thank you for letting me know these bugs. I think the cause of these bugs is the same.