Граф коммитов

10743 Коммитов

Автор SHA1 Сообщение Дата
Masayuki Nakano fb82cd4173 Bug 1725850 - part 24: Port editor/libeditor/crashtests/636074-1.html to WPT r=saschanaz
Depends on D127511

Differential Revision: https://phabricator.services.mozilla.com/D127512
2021-10-05 23:44:54 +00:00
Masayuki Nakano 88c6ffc414 Bug 1725850 - part 23: Port editor/libeditor/crashtests/615450-1.html to WPT r=saschanaz
Depends on D127510

Differential Revision: https://phabricator.services.mozilla.com/D127511
2021-10-05 23:44:54 +00:00
Masayuki Nakano 458ac8f180 Bug 1725850 - part 22: Port editor/libeditor/crashtests/615015-1.html to WPT r=saschanaz
Depends on D127509

Differential Revision: https://phabricator.services.mozilla.com/D127510
2021-10-05 23:44:54 +00:00
Masayuki Nakano 2c7cc7087c Bug 1725850 - part 21: Port editor/libeditor/crashtests/612565-1.html to WPT r=saschanaz
Depends on D127508

Differential Revision: https://phabricator.services.mozilla.com/D127509
2021-10-05 23:44:53 +00:00
Masayuki Nakano 61f689566c Bug 1725850 - part 20: Port editor/libeditor/crashtests/499044-1.html to WPT r=saschanaz
Depends on D127507

Differential Revision: https://phabricator.services.mozilla.com/D127508
2021-10-05 23:44:53 +00:00
Masayuki Nakano f3f0050435 Bug 1725850 - part 19: Port editor/libeditor/crashtests/459613.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D127507
2021-10-05 23:44:53 +00:00
Emilio Cobos Álvarez a002eeaccb Bug 1733945 - Simplify reftest annotations to assume skiaContent == true. r=jrmuizel
Generated with:

  2180efaf7c

Differential Revision: https://phabricator.services.mozilla.com/D127428
2021-10-04 15:19:10 +00:00
Chris Peterson ea48b5e2c8 Bug 1732234 - Fix non-unified build errors in editor/. r=masayuki
Building with `ac_add_options --disable-unified-build` on macOS hits the following -Wunreachable-code-return warnings-as-errors:

editor/libeditor/HTMLEditor.cpp:4341:26 [-Wunreachable-code-return] 'return' will never be executed
editor/libeditor/HTMLTableEditor.cpp:1629:10: warning: 'return' will never be executed [-Wunreachable-code-return]

Differential Revision: https://phabricator.services.mozilla.com/D126441
2021-09-28 04:26:52 +00:00
Masayuki Nakano d7fa9ea462 Bug 1729653 - Make `mozInlineSpellChecker` handle events in the system group at capturing phase r=m_kato
Currently, `mozInlineSpellChecker` handles events in the default group.  This
means that the listener may not run if web app stops the propagation.  For
keeping the event listener order as far as possible, this patch changes to
listen to the event at capturing phase in the system group (editor handles
the events at bubbling phase in the system group).

Additionally, it listens to `keypress` events for handling caret/selection
changes.  However, they should be handled at `keydown` because those keys
are not printable.  Therefore, this patch changes to listen to `keydown`
events, but this could change the race between running the scheduled spellcheck
and following `keypress` event which is dispatched only for chrome code and
C++ event listeners.  However, this may not change it actually because the
race is changed only when the following `keypress` event delays too much.
https://searchfox.org/mozilla-central/rev/2eebd6e256fa0355e08421265e57ee1307836d92/extensions/spellcheck/src/mozInlineSpellChecker.cpp#503-504

Differential Revision: https://phabricator.services.mozilla.com/D126635
2021-09-28 02:47:15 +00:00
Masayuki Nakano 26910d70ce Bug 1725850 - part 18: Port editor/libeditor/crashtests/467647-1.html to WPT r=saschanaz
I think that the crashtests marked as `needs-focus` should wait `focus` event
in the document.  I think that `focus` event is fired only when the window has
focus (*1) and `Element.focus()` steals focus unless chrome UI has focus (*2).
If the testing document hasn't get focus yet, `focus` event will be dispatched
later (*3).

1: https://searchfox.org/mozilla-central/rev/d8d7539593d5a3071841289dee72f971650073ce/dom/base/nsFocusManager.cpp#1672-1681
2: https://searchfox.org/mozilla-central/rev/d8d7539593d5a3071841289dee72f971650073ce/dom/base/nsFocusManager.cpp#1683-1691
3: https://searchfox.org/mozilla-central/rev/d8d7539593d5a3071841289dee72f971650073ce/dom/base/nsFocusManager.cpp#759-777

Depends on D125920

Differential Revision: https://phabricator.services.mozilla.com/D125921
2021-09-22 21:30:54 +00:00
Masayuki Nakano 1e7828e884 Bug 1725850 - part 17: Port editor/libeditor/crashtests/456727-2.html to WPT r=saschanaz
Depends on D125919

Differential Revision: https://phabricator.services.mozilla.com/D125920
2021-09-22 21:30:53 +00:00
Masayuki Nakano 0483379cbe Bug 1725850 - part 16: Port editor/libeditor/crashtests/456727-1.html to WPT r=saschanaz
Depends on D125918

Differential Revision: https://phabricator.services.mozilla.com/D125919
2021-09-22 21:30:53 +00:00
Masayuki Nakano 28bbe04f1b Bug 1725850 - part 15: Port editor/libeditor/crashtests/448329-3.html to WPT r=saschanaz
Depends on D125917

Differential Revision: https://phabricator.services.mozilla.com/D125918
2021-09-22 21:30:52 +00:00
Masayuki Nakano e9d6cc71eb Bug 1725850 - part 14: Port editor/libeditor/crashtests/448329-2.html to WPT r=saschanaz
Depends on D125916

Differential Revision: https://phabricator.services.mozilla.com/D125917
2021-09-22 21:30:52 +00:00
Masayuki Nakano 54be07ba20 Bug 1725850 - part 13: Port editor/libeditor/crashtests/448329-1.html to WPT r=saschanaz
Depends on D125915

Differential Revision: https://phabricator.services.mozilla.com/D125916
2021-09-22 21:30:52 +00:00
Masayuki Nakano c7424ffec6 Bug 1725850 - part 12: Port editor/libeditor/crashtests/430624-1.html to WPT r=saschanaz
Depends on D125914

Differential Revision: https://phabricator.services.mozilla.com/D125915
2021-09-22 21:30:51 +00:00
Masayuki Nakano 0f8cc24fcb Bug 1725850 - part 11: Port editor/libeditor/crashtests/420439.html to WPT r=saschanaz
The test requires to support allowing nested `execCommand` if we want to run
completely.  From point of view of the purose of crashtests, we should allow
it for testing in more complicated situation.  Therefore, this patch allows
it while the test is running by the pref.

Differential Revision: https://phabricator.services.mozilla.com/D125914
2021-09-22 21:30:51 +00:00
Masayuki Nakano 5912f0b3ff Bug 1729480 - Make `keypress` event listener of editor and `execCommand` related methods access editor instance after flushing pending layout r=emilio,smaug
I have no idea how to make the test result stable because the intermittent
failure is caused by a race of `IMEContentObserver`'s content query performend
at vsync and `keypress` event after the `keydown` event.  Therefore, I try to
fix the root cause of the failure.

There are two paths reaching a public method of editor with pending
notifications.  One is `keypress` event listener of the editor.  The other is
`execCommand` related methods of `Document`.  Therefore, we should make them
flush pending notifications before accessing editor, but the cost may be too
expensive.  So we should consider whether we should flush pending notifications
or not as far as later.

Note that we cannot fix the `beforeinput` cases because flushing pending
notifications after dispatching `beforeinput` event may cause oranges.  It'll
be fixed while I'm working on bug 1710784.

Differential Revision: https://phabricator.services.mozilla.com/D125805
2021-09-17 17:48:05 +00:00
Masayuki Nakano f7705eac76 Bug 1731005 - HTMLEditor::GetActiveEditingHost() does not return editing host if selection is collapsed in `<input>` r=m_kato
If we flush pending notifications before calling `execCommand` in
`insert-*-in-void-element.tentative.html`, `HTMLEditor` does not work because
`GetActiveEditingHost()` returns `nullptr`.  This is wrong because `Selection`
cannot cross native anonymous subtree boundaries and the selection collapsed in
`<input>` element is valid.  Therefore, it should not check whether the content
has independent selection or not.

Differential Revision: https://phabricator.services.mozilla.com/D125791
2021-09-17 00:57:22 +00:00
Masayuki Nakano c0d8a32379 Bug 1730429 - part 2: Delete empty inline elements which become newly empty but preserve the styles for next editing r=m_kato
This change makes deletion of all contents in inline elements compatible with
the other browsers.

Differential Revision: https://phabricator.services.mozilla.com/D125369
2021-09-15 04:13:44 +00:00
Masayuki Nakano eecd5a5f1c Bug 1727840 - Make `DeleteNodeTransaction` allow to create its instance for non-editable text node which was created or modified by an editor r=m_kato
Although we don't have a testcase, `HTMLEditor` may need to delete a text node
if it's created for composition.  If it's not allowed, users may see staying
composition string in disabled editor.

Differential Revision: https://phabricator.services.mozilla.com/D125502
2021-09-15 00:20:19 +00:00
Ting-Yu Lin bd25bca479 Bug 1730084 Part 4 - Clean up and fix an edge case of FindWord(). r=jfkthame
* Rename arguments so that their names are consistent with Next().
* Make the function not assert on an empty string, i.e. aLen == 0, like
Next().
* Fix an undefined behavior when the user passes aTextLen == aOffset.
The methods used to access `aText[aOffset]` that is clearly out of range
because the string may not be null-terminated. After this patch, it
returns a sentinel WordRange when aLen == aPos.
* Add document and gtest TestFindWordWithEmptyString().
* Change the sentinel return value to {aLen,aLen} for FindWord(), and
adapt one caller.

Differential Revision: https://phabricator.services.mozilla.com/D125434
2021-09-13 23:55:33 +00:00
Masayuki Nakano 903be77ea2 Bug 1672900 - part 3: Make `ExtendOrShrinkRangeToDelete()` selects all contents in all list items if a list element is selected or all list items in a list element is selected r=m_kato
When a list element has non-empty list item element, even if the list element is
selected, deleting operation should make the list element empty first (i.e.,
making the list element has only one empty list item element).  Then, another
deleting operation/command can delete it completely.  This is Blink compat
behavior in most cases except when the list has non-editable list item element
as first and/or last child of it.

Note that the new failures of the browserscpe are not compatible with the
new behavior, that is, it wants a list element is deleted when the last
list item is deleted.
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/delete.py#161-164
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/editor/libeditor/tests/browserscope/lib/richtext2/richtext2/tests/forwarddelete.py#146-149

Here is same test in the WPT:
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/tests/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html#386-402
And only Gecko failed in this case:
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#1449-1450
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#1937-1938
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#425-426
https://searchfox.org/mozilla-central/rev/08c493902519265d570250c8e7ce575c8cd6f5b5/testing/web-platform/meta/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html.ini#787-788

https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FDelete,ol?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FDelete,ul?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FBackspace,ol?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512
https://wpt.fyi/results/input-events/input-events-get-target-ranges-deleting-in-list-items.tentative.html%3FBackspace,ul?run_id=5734231113203712&run_id=6263979761467392&run_id=5750388243300352&run_id=5090688355008512

Therefore, the new failures are expected result.

Depends on D125029

Differential Revision: https://phabricator.services.mozilla.com/D125030
2021-09-11 07:17:38 +00:00
Masayuki Nakano 48b4d9fa76 Bug 1672900 - part 2: Rewrite `HTMLEditor::AutoDeleteRangesHandler::ExtendRangeToIncludeInvisibleNodes()` with modern helper classes r=m_kato
And this renames the method to `ExtendOrShrinkRangeToDelete` for alining to
new behavior changed by the following patch.

Depends on D125028

Differential Revision: https://phabricator.services.mozilla.com/D125029
2021-09-11 07:17:37 +00:00
Masayuki Nakano 153b43e7e2 Bug 1720809 - part 2: Make `insertLineBreak` command handler in `HTMLEditor` insert a linefeed character instead of `<br>` element in same condition as Blink/WebKit r=m_kato
Similar to the previous patch, this patch makes `insertLineBreak` command
handler of `HTMLEditor` may insert a linefeed character instead of `<br>`
element for compatibility with Blink/WebKit.

Note that for making same name rules as `insertParagraphSeparator` command
handlers, this patch renames
`HTMLEditor::InsertBRElementAtSelectionWithTransaction()` to
`InsertLineBreakAsSubAction()` and moves
`EditorBase::InsertLineBreakAsSubAction()` to `TextEditor` since it's
used only by `TextEditor` instance.

Depends on D124731

Differential Revision: https://phabricator.services.mozilla.com/D124732
2021-09-10 21:45:47 +00:00
Masayuki Nakano 2640b6cdc9 Bug 1720809 - part 1: Make `insertParagraphSeparator` command handler in `HTMLEditor` insert a linefeed character instead of `<br>` element in same condition as Blink/WebKit r=m_kato
Blink and WebKit inserts linefeed character for `insertParagraphSeparator`
command if:
* the insertion point's block parent is an editing host
* the editing host's outside display is "inline"
* the editing host's white space style preformats linefeed characters

For web-compat, we should do this in these conditions.

Depends on D124562

Differential Revision: https://phabricator.services.mozilla.com/D124731
2021-09-10 21:45:47 +00:00
Masayuki Nakano 2884959c1b Bug 1725850 - part 10: Port editor/libeditor/crashtests/418923-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124855
2021-09-10 13:09:42 +00:00
Masayuki Nakano 00b18cd680 Bug 1725850 - part 9: Port editor/libeditor/crashtests/414178-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124854
2021-09-10 13:09:41 +00:00
Masayuki Nakano b0f9fd251f Bug 1725850 - part 8: Port editor/libeditor/crashtests/407277-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124853
2021-09-10 13:09:41 +00:00
Masayuki Nakano d2a5978030 Bug 1725850 - part 7: Port editor/libeditor/crashtests/407256-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124852
2021-09-10 13:09:40 +00:00
Masayuki Nakano 83f4defc52 Bug 1725850 - part 6: Port editor/libeditor/crashtests/407079-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124851
2021-09-10 13:09:40 +00:00
Masayuki Nakano d07b22b20e Bug 1725850 - part 5: Port editor/libeditor/crashtests/407074-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124850
2021-09-10 13:09:39 +00:00
Masayuki Nakano efe248d8b3 Bug 1725850 - part 4: Port editor/libeditor/crashtests/402172-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124849
2021-09-10 13:09:39 +00:00
Masayuki Nakano 74249e5767 Bug 1725850 - part 3: Port editor/libeditor/crashtests/382778-1.html to WPT r=saschanaz
Differential Revision: https://phabricator.services.mozilla.com/D124848
2021-09-10 13:09:39 +00:00
Masayuki Nakano 45b2fbb2a1 Bug 1725850 - part 2: Port editor/libeditor/crashtests/382527-1.html to WPT r=saschanaz
The test used CRLF.  Therefore, you may see all lines are changed.

Differential Revision: https://phabricator.services.mozilla.com/D124847
2021-09-10 13:09:38 +00:00
Masayuki Nakano fa96f6f36c Bug 1725850 - part 1: Port editor/libeditor/crashtests/336104.html to WPT r=saschanaz
This uses `setTimeout` for emulating original test as far as possible, but
unfortunately, we need to change `data` URI of the `<iframe>` to `srcdoc`
due to cross-origin error.

Differential Revision: https://phabricator.services.mozilla.com/D124846
2021-09-10 13:09:38 +00:00
Masayuki Nakano b8c286c107 Bug 1724650 - part 8: Update WPT result and add new tests to insert mulitple white-spaces r=m_kato
This does NOT add tests to `inserttext` command which includes linefeed
characters with other characters.  It seems that Blink handles 2 or more
length string is handled as multiple calls for every character.  So each
linefeed character is handled as `insertparagraph`, but Gecko treats the
linefeed characters as-is.  We should add the tests later with changing
Gecko's behavior, but for now, we should keep current behavior because
this difference must not be trobule in the wild, but we need to improve
preformatted string handler of Gecko better against reported web-compat
issues.

Differential Revision: https://phabricator.services.mozilla.com/D124562
2021-09-10 04:04:30 +00:00
Masayuki Nakano d09a8cbb39 Bug 1724650 - part 7: Make `HTMLEditor` treat preformatted linefeed characters correctly when retrieving a line range r=m_kato
`HTMLEditor` tries to collect all children in a line.  However, it does not
handle preformatted linefeed characters.  Especially when there is a
preformatted linefeed immediately before a block boundary, it becomes invisible.
So, the range of line needs to extend the range correctly similar to the case
if there is an invisible `<br>` element.

Differential Revision: https://phabricator.services.mozilla.com/D124561
2021-09-10 04:04:30 +00:00
Masayuki Nakano 87d3421c74 Bug 1724650 - part 6: Make white-space normalizers treat `white-space: pre-line` correctly r=m_kato
So, the careful point is, they shouldn't put ASCII white-space next to a
preformatted white-space, but should put ASCII white-space next to the NBSP
as far as possible for making line break opportunities.

Differential Revision: https://phabricator.services.mozilla.com/D124560
2021-09-10 04:04:29 +00:00
Masayuki Nakano 1b14d4d1ca Bug 1724650 - part 5: Make delete text handler aware of `white-space: pre-line` r=m_kato
If caret is put at preformatted linefeed, we need to handle adjacent
collapsible white-spaces too if the style is `white-space: pre-line`.
Therefore, this patch makes the delete handler aware of the case only
linefeed characters are preformatted and `AutoDeleteRangesHandler` call it
when caret is around a preformatted line break.

Differential Revision: https://phabricator.services.mozilla.com/D124559
2021-09-10 04:04:29 +00:00
Masayuki Nakano f0344e052d Bug 1724650 - part 4: Make replace text handlers aware of `white-space: pre-line` r=m_kato
It currently replaces inserting string's white-spaces to an `NBSP` even if
preformatted linefeed characters.  Additionally, collapsible white-spaces around
a linefeed are removed.  Therefore, adjacent collapsible characters of every
linefeed needs to be an NBSP.  This patch makes the method handle it correctly.

Differential Revision: https://phabricator.services.mozilla.com/D124558
2021-09-10 04:04:29 +00:00
Masayuki Nakano de315fe944 Bug 1724650 - part 3: Make `GetEndOfCollapsibleASCIIWhiteSpaces` and `GetFirstASCIIWhiteSpacePointCollapsedTo` treat preformatted linefeed characters correctly r=m_kato
If `white-space` is `pre-line`, only linefeed characters are preformatted, but
white-spaces are collapsible.  And if collapsible white-spaces follow or
are followed by a preformatted linefeed, they are removed.  Therefore,
these methods need to scan following or preceding white-spaces of first
linefeed if the caller wants to delete.  Unless doing it, the removed
white-spaces would become visible due to no linefeed character containing
sequence.

Differential Revision: https://phabricator.services.mozilla.com/D124557
2021-09-10 04:04:28 +00:00
Masayuki Nakano 32d30595d2 Bug 1724650 - part 2: Make scanner methods in `WSRunObject.cpp` treat preformatted linefeed characters correctly r=m_kato
Currently, they don't assume that there is `white-space: pre-line` which
preserves only linefeed characters, but white-spaces are collapsible.
This patch makes them stop early return when white-spaces are preformatted,
and do additional checks for linefeed characters.

Differential Revision: https://phabricator.services.mozilla.com/D124556
2021-09-10 04:04:28 +00:00
Masayuki Nakano e7a67fc1cf Bug 1724650 - part 1: Make `HTMLEditUtils` scans collapsible white-spaces with referring the style r=m_kato
This makes it support `white-space: pre-line` which only preserve linefeed
characters.  However, the APIs are not all of what we need to change.
Therefore, this causes hitting assertion hits due to different result from
some other APIs.  So patching only with this does not work.  The automated
test results will be updated later.

Note that it's **not** the goal of this bug that we don't support white-space
handling in text nodes whose `white-space` is `-moz-pre-space`.  It replaces
linefeed characters with white-spaces then, preserve all white-spaces.
However, it's not standardized, and it's available with `xml:space="preserve"`
in SVG if web developers don't use the vender prefixed value, and finally,
supporting it makes our white-space handling in editor more complicated
than applying the following patches.  So, we don't need to do it at least
for now.  Therefore, this and following patches does not assume that there
are no cases that only new lines are collapsible.

Differential Revision: https://phabricator.services.mozilla.com/D124555
2021-09-10 04:04:27 +00:00
Masayuki Nakano 774d292c7b Bug 1729111 - part 3: Rewrite `HTMLEditUtils::IsVisibleTextNode()` without `WSRunScanner` r=m_kato
`WSRunScanner` is designed for scanning editable nodes, but
`IsVisibleTextNode()` should not check editable state.  Therefore, it should
check it without `WSRunScanner` like `IsVisibleBRElement()`.

Differential Revision: https://phabricator.services.mozilla.com/D124554
2021-09-07 07:24:50 +00:00
Masayuki Nakano b358b03494 Bug 1729111 - part 2: Split scanning following content part of `HTMLEditUtils::IsVisibleBRElement()` r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D124553
2021-09-07 07:24:50 +00:00
Masayuki Nakano 4cf5fda5b7 Bug 1729111 - part 1: Make `HTMLEditUtils.h` avoud using `dom::` at using classes in the namespace r=m_kato
Differential Revision: https://phabricator.services.mozilla.com/D124552
2021-09-07 07:24:49 +00:00
Masayuki Nakano eb21ae6f7c Bug 1727868 - Make `HTMLEditUtils::IsVisibleBRElement()` stop using `WSRunScanner` r=m_kato
The method may be used for checking a `<br>` element visibility in non-editable
content too.  Therefore, using `WSRunScanner` which is designed for scanning
editable content hits assertions.

The visibility of `<br>` element is considered only with the following
visible thing.  If it's followed only by another or current block boundary,
the `<br>` element is invisible.  But otherwise, it's visible.  So, it needs
to scan following contents to look for first visible thing until reaching
a block boundary.  And it does not need to check its previous content.

Differential Revision: https://phabricator.services.mozilla.com/D123876
2021-09-06 22:31:22 +00:00
Masayuki Nakano de3dc20d9f Bug 1727844 - part 8: Rename `BoundaryData::Preformatted` to `BoundaryData::WhiteSpacePreformatted` r=m_kato
It's should not cross preformatted line break, therefore, the better name
for it is, it means whether the preformatted white-space is found or not.

Differential Revision: https://phabricator.services.mozilla.com/D123875
2021-08-31 17:37:43 +00:00
Masayuki Nakano ed2f2242d1 Bug 1727844 - part 7: Make `HTMLEditor` related classes use constants in `HTMLEditUtils` to use specific character code point r=m_kato
Although we should move it into `EditorUtils`, currently, this is enough.

Differential Revision: https://phabricator.services.mozilla.com/D123874
2021-08-31 17:37:42 +00:00