Reduce dependencies from `Selection::MaybeAddTableCellRange` to `mFrameSelection`
Categories
(Core :: DOM: Selection, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox75 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)
References
(Blocks 1 open bug)
Details
Attachments
(10 files)
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review | |
47 bytes,
text/x-phabricator-request
|
Details | Review |
A preparatory step to decouple the code which keeps a Selection's styled ranges sorted and disjunct. As DocumentOrShadowRoot
will keep a list of sorted disjunct ranges, the corresponding code will have to be factored out from Selection.
Assignee | ||
Comment 1•4 years ago
|
||
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D61691
Assignee | ||
Comment 3•4 years ago
|
||
Depends on D61692
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5a1c680c8740 part 1) Decouple `Selection::GetTableSelectionType` from `Selection` class. r=smaug https://hg.mozilla.org/integration/autoland/rev/11d012aeef35 part 2) Remove unnecessary dependency from `nsFrameSelection::GetCellLayout` to `mPresShell` and declare it static. r=smaug https://hg.mozilla.org/integration/autoland/rev/743fb8cbcce4 part 3) Remove `Selection::GetTableCellLocationFromRange`'s dependency to `mFrameSelection` and declare it static. r=smaug
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 5•4 years ago
|
||
Assignee | ||
Comment 6•4 years ago
|
||
Depends on D62037
Assignee | ||
Comment 7•4 years ago
|
||
Depends on D62038
Assignee | ||
Comment 8•4 years ago
|
||
Removes duplicated code and reveals the dependency to frame selection.
Depends on D62039
Assignee | ||
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
bugherder |
Assignee | ||
Comment 11•4 years ago
|
||
Moreover, this is potentially more efficient because
GetRangesForIntervalArray
doesn't have to be called when there's no
frame selection.
Assignee | ||
Comment 12•4 years ago
|
||
Comment 13•4 years ago
|
||
Pushed by apavel@mozilla.com: https://hg.mozilla.org/mozilla-central/rev/b49700eb1596 part 4) Declare some methods in `nsFrameSelection` static. r=smaug https://hg.mozilla.org/mozilla-central/rev/0ea74c8ad137 part 5) Decouple `UserSelectRangesToAdd` from `Selection` class. r=smaug
Comment 14•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Comment 15•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f3baf3407cbe part 6) Remove copy&pasted `IsValidSelectionPoint` function. r=smaug https://hg.mozilla.org/integration/autoland/rev/6fe76439f1d3 part 7) Remove `Selection`'s default constructor. r=smaug https://hg.mozilla.org/integration/autoland/rev/e3a2ab6d7267 part 8) Add assertion to `nsAutoScrollTimer::Init`. r=smaug https://hg.mozilla.org/integration/autoland/rev/cee4bbabc4b5 part 9) Clarify dependency to `mFrameSelection` in `Selection` when adding/removing ranges. r=smaug https://hg.mozilla.org/integration/autoland/rev/f38b806ee78b part 10) Declare some table/Selection related method arguments const. r=smaug
Comment 16•4 years ago
|
||
Backed out 5 changesets (Bug 1613378) for mochitest failures at test_general.html.
https://hg.mozilla.org/integration/autoland/rev/cb0bb295c5e69a885a5eee9e6ccd7edeb2ac210e
Failure log:
https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=288327107&repo=autoland&lineNumber=4002
Assignee | ||
Updated•4 years ago
|
Comment 17•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/0d7ceea5ffb7 part 6) Remove copy&pasted `IsValidSelectionPoint` function. r=smaug https://hg.mozilla.org/integration/autoland/rev/d301a063f64f part 7) Remove `Selection`'s default constructor. r=smaug https://hg.mozilla.org/integration/autoland/rev/0f4ea01a8e97 part 8) Add assertion to `nsAutoScrollTimer::Init`. r=smaug
Comment 18•4 years ago
|
||
bugherder |
Comment 19•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/41809d86171c part 9) Clarify dependency to `mFrameSelection` in `Selection` when adding/removing ranges. r=smaug https://hg.mozilla.org/integration/autoland/rev/5177b7449ca5 part 10) Declare some table/Selection related method arguments const. r=smaug
Assignee | ||
Updated•4 years ago
|
Comment 20•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/41809d86171c
https://hg.mozilla.org/mozilla-central/rev/5177b7449ca5
Description
•