Closed Bug 1729111 Opened 3 years ago Closed 3 years ago

Make `HTMLEditUtils::IsVisibleTextNode()` not use `WSRunScanner`

Categories

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

task

Tracking

()

RESOLVED FIXED
94 Branch
Tracking Status
firefox94 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(3 files)

WSRunScanner is designed for handling only editable content, but IsVisibleTextNode() should not work with editable state check.

WSRunScanner is designed for scanning editable nodes, but
IsVisibleTextNode() should not check editable state. Therefore, it should
check it without WSRunScanner like IsVisibleBRElement().

Depends on D124553

Changing severity to N/A because of a task for fixing the wrong design.

Severity: -- → N/A
Priority: -- → P3
Attachment #9239494 - Attachment description: Bug 1729111 - part 1: Make `HTMLEditUtils.h` use `mozilla:dom` namespace by default r=m_kato! → Bug 1729111 - part 1: Make `HTMLEditUtils.h` avoud using `dom::` at using classes in the namespace r=m_kato!
Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/b7d51d4e4a3c part 1: Make `HTMLEditUtils.h` avoud using `dom::` at using classes in the namespace r=m_kato https://hg.mozilla.org/integration/autoland/rev/0d218ad033af part 2: Split scanning following content part of `HTMLEditUtils::IsVisibleBRElement()` r=m_kato https://hg.mozilla.org/integration/autoland/rev/d1e96fb23d43 part 3: Rewrite `HTMLEditUtils::IsVisibleTextNode()` without `WSRunScanner` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 94 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: