Commit Graph

6 Commits

Author SHA1 Message Date
Pale Moon a17dc0d577 Hold a strong reference on the Selection while calling ScrollIntoView with SCROLL_DO_FLUSH. 2018-07-25 07:09:13 +08:00
Pale Moon 00c0512ccb Make DOM selection addRange spec-compliant, take 2.
Because of the platform structure, we have to provide a way to add ranges to
Selection objects that aren't associated with a shell/nsFrameSelection.
This commit extends the original implementation with workarounds to add
these ranges by reaching into the internal implementation for adding ranges
and calling those functions directly.
2018-07-25 06:58:28 +08:00
Pale Moon c8b597e077 Revert "Make DOM selection-addRange spec compliant."
This reverts commit 475aff8d8049abb9cc0caa32671d5fa60dc91472.
2018-07-25 06:57:39 +08:00
Pale Moon 790eca3498 Make DOM selection-addRange spec compliant. 2018-07-25 06:57:17 +08:00
wolfbeast 71436ec92b Disable splitting of selections into ranges.
This avoid a large performance regression at the cost of making selections visually less accurate if sections are included with `-moz-user-select: none;`
2018-07-24 23:30:23 +08:00
Moonchild baf46a6bf1 Merge pull request #1 from mozilla/esr38: Esr38 upstream pull 2018-07-24 23:04:07 +08:00