Closed Bug 1839793 Opened 1 year ago Closed 1 year ago

Move `EditorBase::FindBetterInsertionPoint` to `TextEditor`

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
116 Branch
Tracking Status
firefox116 --- fixed

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Attachments

(1 file)

Currently it runs if the instance is a TextEditor or it's in the plaintext
mode of HTMLEditor. However, it does not make sense to run it only in
specific mode of HTMLEditor, and most part does not make sense for
HTMLEditor.

This patch moves the method to TextEditor, and for
EditorBase::InsertTextWithTransaction() and
AutoRangeArray::ExtendAnchorFocusRangeFor(), adds new method to
EditorDOMPointBase to get a text node position if it points around
a text node.

Pushed by masayuki@d-toybox.com: https://hg.mozilla.org/integration/autoland/rev/28792d27b5c9 Move `EditorBase::FindBetterInsertionPoint` into `TextEditor` r=m_kato
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 116 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: