c0723c81eedbac960a7a2a5a2ccaccb6a861f646
WhiteSpaceVisibilityKeeper::InsertTextOrInsertOrUpdateCompositionString support blink compatible white-space sequence r=m_kato
First, it makes it deletes invisible white-spaces at the insertion point. This makes the further processing simpler. Second, it extends the range to update in `Text` which will contain the insertion string when it's not used for inserting nor updating composition string, as containing all surrounding white-spaces at the insertion point. Next, it normalizes the inserting string with the surrounding white-spaces with the same rules as the other browsers especially as Chrome. 1. a collapsible white-space at start or end of a `Text` is always an NBSP. 2. a collapsible white-space immediately before or after a preformatted line break is always an NBSP. 3. a collapsible white-space surrounded by non-collapsible chars is always an ASCII white-space. 4. collapsible white-spaces are pairs of an NBSP and an ASCII white-space. Then, we can make `HTMLEditor::OnEndHandlingTopLevelEditSubActionInternal()` stop normalizing white-spaces when inserting text. Differential Revision: https://phabricator.services.mozilla.com/D239463
…
…
Backed out 9 changesets (bug 1940377) for causing wpt failures @elete-to-join-blocks.tentative.html.
…
…
Backed out 9 changesets (bug 1940377) for causing wpt failures @elete-to-join-blocks.tentative.html.
…
…
…
…
An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:
https://firefox-source-docs.mozilla.org/contributing/directory_structure.html
For information on how to build Firefox from the source code and create the patch see:
https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.
Nightly development builds can be downloaded from:
https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
- or -
https://www.mozilla.org/firefox/channel/desktop/#nightly
Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.
Description
Languages
JavaScript
32.6%
C++
25.1%
HTML
20.9%
C
10.6%
Python
2.8%
Other
7.6%