[Webkit-unassigned] [Bug 205613] [LFC][IFC] Keep the LineBreaker object around until after the line is closed.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Dec 27 20:41:11 PST 2019


https://bugs.webkit.org/show_bug.cgi?id=205613

--- Comment #2 from zalan <zalan at apple.com> ---
        In order to be able to point back to an earlier line wrap opportunity on the line e.g.
        <div style="white-space: pre"><span style="white-space: normal">earlier_wrap opportunities</span> <span>can't_wrap_this content</span></div>
        the LineBreaker class needs more context.
        Currently (taking the example above), if the available space runs out somewhere around the second <span> we would just simply
        overflow the line since the overflowing content has a style saying "do not wrap".
        However the line has multiple earlier wrap opportunities inside the first <span>.
        Since we construct a LineBreaker object for each continuous run 

        1. [container start][earlier_wrap]
        2. [ ]
        3. [opportunities][container end]
        4. [ ]
        5. [container start][can't_wrap_this]
        6. [ ]
        7. [content][container end]

        the LineBreaker does not have enough context to point back to the last line wrap opportunity (after run #3).

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191228/d3dcf6f2/attachment.htm>


More information about the webkit-unassigned mailing list