+148
−0
+19
−27
Loading
This patch adds `EditorUtils::IsNewLinePreformatted()` to check whether a linefeed character is collapsible or not. Then, a lot of users of `EditorDOMPointBase::Is*CharASCIISpace()` and `EditorDOMPointBase::Is*CharASCIISpaceOrNBSP()` should check whether the white-space at the point is collapsible or not. Therefore, this patch adds `Is*CharCollapsibleASCIISpace()` and `Is*CharCollapsibleASCIISpaceOrNBSP()` too. Then, makes such callers use the new API instead. Differential Revision: https://phabricator.services.mozilla.com/D123871