Closed Bug 1462578 Opened 6 years ago Closed 5 years ago

HTMLEditRules::NormalizeSelection() should use Selection::SetBaseAndExtent() instead of using Selection::Collapse() and Selection::Extend()

Categories

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

enhancement

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox-esr68 --- fixed
firefox62 --- wontfix

People

(Reporter: masayuki, Assigned: masayuki)

References

Details

Both Selection::Collapse() and Selection::Extend() are expensive. However, HTMLEditRules::NormalizeSelection() calls both of them. Instead, it should use Selection::SetBaseAndExtent() for performance.
Priority: -- → P3

This was fixed by bug 1533293.

Assignee: nobody → masayuki
Status: NEW → ASSIGNED
Depends on: 1533293
Target Milestone: --- → mozilla68
Status: ASSIGNED → RESOLVED
Closed: 5 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.