Clean up methods handling whitespace sequence in `WSRunObject`
Categories
(Core :: DOM: Editor, task, P3)
Tracking
()
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: masayuki, Assigned: masayuki)
References
Details
Attachments
(5 files)
Assignee | ||
Comment 1•5 years ago
|
||
They are complicated because of not using early-return style.
Depends on D75471
Assignee | ||
Comment 2•5 years ago
|
||
Depends on D75472
Assignee | ||
Comment 3•5 years ago
|
||
Then, the last if
block runs obviously only when the preceding if
block
runs. Therefore, this patch moves it.
Depends on D75473
Assignee | ||
Comment 4•5 years ago
|
||
Although the new name is not true when neither
maybeNBSPFollowingVisibleContent
nor isPreviousCharASCIIWhitespace
is true.
Depends on D75474
Assignee | ||
Comment 5•5 years ago
|
||
This patch makes it use early-return style and adds some comments. Its behavior
should be changed as soon as possible for web-compat. Therefore, I don't
write current behavior as comment at declaration.
Depends on D75475
Comment 7•5 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/83ac1ca91ced
https://hg.mozilla.org/mozilla-central/rev/93b022e2a192
https://hg.mozilla.org/mozilla-central/rev/8f39b27ae9b2
https://hg.mozilla.org/mozilla-central/rev/53c9b3b340e6
https://hg.mozilla.org/mozilla-central/rev/89323728b4a7
Description
•