Loading
Bug 1520779 Part 6: Return consistent results for paragraphs that contain...
Bug 1520779 Part 6: Return consistent results for paragraphs that contain forced line breaks, r=Jamie 1. Make sure the paragraph text and start and end ofsets returned for offsets on either the text or its adjacent br always match. 2. For a single line break at the beginning of the enclosing paragraph, or two consecutive line breaks, treat the second one as its own paragraph without text, and its start offset corresponding to its offset, and end offset being 1 greater. 3. Add a test case exercising all cases. Differential Revision: https://phabricator.services.mozilla.com/D90355