Closed Bug 1637865 Opened 5 years ago Closed 5 years ago

Clean up methods handling whitespace sequence in `WSRunObject`

Categories

(Core :: DOM: Editor, task, P3)

task

Tracking

()

RESOLVED FIXED
mozilla78
Tracking Status
firefox78 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(5 files)

No description provided.

Then, the last if block runs obviously only when the preceding if block
runs. Therefore, this patch moves it.

Depends on D75473

Although the new name is not true when neither
maybeNBSPFollowingVisibleContent nor isPreviousCharASCIIWhitespace is true.

Depends on D75474

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

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/83ac1ca91ced part 1: Clean up `WSRunObject::ReplacePreviousNBSPIfUnnecessary()` and `WSRunObject::CheckLeadingNBSP()` r=m_kato https://hg.mozilla.org/integration/autoland/rev/93b022e2a192 part 2: Rename `spaceNBSP` in `WSRUnObject::CheckTrailingNBSPOfRun()` r=m_kato https://hg.mozilla.org/integration/autoland/rev/8f39b27ae9b2 part 3: Rename `leftCheck` in `WSRunObject::CheckTrailingNBSPOfRun()` r=m_kato https://hg.mozilla.org/integration/autoland/rev/53c9b3b340e6 part 4: Rename `rightCheck` in `WSRunObject::CheckTrailingNBSPOfRun()` r=m_kato https://hg.mozilla.org/integration/autoland/rev/89323728b4a7 part 5: Clean up `WSRunObject::CheckTrailingNBSPOfRun()` r=m_kato
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: