Document and simplify some Selection related code
Categories
(Core :: DOM: Selection, enhancement)
Tracking
()
Tracking | Status | |
---|---|---|
firefox76 | --- | fixed |
People
(Reporter: mbrodesser-Igalia, Assigned: mbrodesser-Igalia)
References
(Blocks 1 open bug)
Details
Attachments
(26 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 | |
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 | |
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 |
Assignee | ||
Comment 1•4 years ago
|
||
More accurate.
Assignee | ||
Comment 2•4 years ago
|
||
Depends on D67599
Assignee | ||
Comment 3•4 years ago
|
||
It was never read apart from forwarding it to nsFrameSelection
.
Depends on D67600
Assignee | ||
Comment 4•4 years ago
|
||
Depends on D67601
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/84477c862580 part 1) Rename `nsINode::IsSelectionDescendant` to `nsINode::IsMaybeSelected`. r=smaug https://hg.mozilla.org/integration/autoland/rev/fc611a718497 part 2) Declare `nsIContent::HasIndependentSelection` `const`. r=smaug https://hg.mozilla.org/integration/autoland/rev/2caa882e6503 part 3) Remove `TextInputSelectionController::mLimiter`. r=smaug https://hg.mozilla.org/integration/autoland/rev/d03f4d08e7e7 part 4) Document `PresShell::mSelectionFlags`. r=smaug
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 6•4 years ago
|
||
Comment 7•4 years ago
|
||
bugherder |
Assignee | ||
Comment 8•4 years ago
|
||
Depends on D67644
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D67806
Comment 10•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9c035aabedb4 part 5) Document `nsTextFrame::GetSelectionStatus`. r=smaug
Assignee | ||
Comment 11•4 years ago
|
||
Depends on D67807
Assignee | ||
Comment 12•4 years ago
|
||
Depends on D67846
Assignee | ||
Comment 13•4 years ago
|
||
Depends on D67847
Comment 14•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/5e0d8e21f9f0 part 6) Use `switch` statement in `nsTextPaintStyle::InitSelectionColorsAndShadow`. r=smaug
Comment 15•4 years ago
|
||
bugherder |
Comment 16•4 years ago
|
||
bugherder |
Assignee | ||
Comment 17•4 years ago
|
||
Depends on D67848
Assignee | ||
Comment 18•4 years ago
|
||
Depends on D68008
Assignee | ||
Comment 19•4 years ago
|
||
Comment 20•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/df14c69672f0 part 7) Rename and simplify `nsFrame::DisplaySelection`. r=smaug
Comment 21•4 years ago
|
||
bugherder |
Comment 22•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/8a460e00bd6d part 8) Document `nsIFrame::ComputeSelectionStyle`. r=smaug https://hg.mozilla.org/integration/autoland/rev/70e7b2baa28f part 9) Document more variables corresponding to `nsISelectionController::getDisplaySelection`. r=smaug
Comment 23•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/7e1333796925 part 10) Simplify `Selection::AddRangesForSelectableNodes`'s signature. r=smaug
Comment 24•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/e4ca6d27aa78 part 11) Split `Selection::AddRangesForSelectableNodes`. r=smaug https://hg.mozilla.org/integration/autoland/rev/3067255d5eb2 part 12) Factor determining "selectstart" event target out. r=smaug https://hg.mozilla.org/integration/autoland/rev/0c829e76b0c6 part 13) Declare some methods in `HyperTextAccessible` `const`. r=smaug
Assignee | ||
Updated•4 years ago
|
Comment 25•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/8a460e00bd6d
https://hg.mozilla.org/mozilla-central/rev/70e7b2baa28f
Comment 26•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Comment 27•4 years ago
|
||
Forgot to update the review on Phabricator.
Comment 28•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/d3f2d9592869 part 14) Incorporate feedback of part 12. r=smaug
Comment 29•4 years ago
|
||
bugherder |
Assignee | ||
Comment 30•4 years ago
|
||
Assignee | ||
Comment 31•4 years ago
|
||
Depends on D68575
Assignee | ||
Comment 32•4 years ago
|
||
Depends on D68576
Assignee | ||
Comment 33•4 years ago
|
||
Depends on D68577
Assignee | ||
Comment 34•4 years ago
|
||
Depends on D68578
Assignee | ||
Comment 35•4 years ago
|
||
Depends on D68579
Assignee | ||
Comment 36•4 years ago
|
||
Depends on D68580
Comment 37•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/69539461f67e part 15) Remove some conditions in `nsFrameSelection::TakeFocus` which are always true. r=hsivonen https://hg.mozilla.org/integration/autoland/rev/1aa8cbe35ebb part 16) Annotate `nsFrameSelection::HandleTableSelection` with `[[nodiscard]]`. r=hsivonen https://hg.mozilla.org/integration/autoland/rev/aabd5a62e61c part 17) Assert accessible caret methods in `Selection` are only called for `eNormal` Selections. r=hsivonen https://hg.mozilla.org/integration/autoland/rev/dd3db84e0787 part 18) Assert `Selection::StopAutoScrollTimer` is only called for `eNormal` Selections. r=hsivonen https://hg.mozilla.org/integration/autoland/rev/d2322ca0888a part 19) Remove superfluous `nsAutoScrollTimer::Init`. r=hsivonen https://hg.mozilla.org/integration/autoland/rev/a76c67117050 part 20) Assert `Selection::NotifyAutoCopy` is only called for `eNormal` Selections. r=hsivonen https://hg.mozilla.org/integration/autoland/rev/7e158fb43cad part 21) Add some const correctness to `nsDocumentEncoder::SerializeSelection`. r=hsivonen
Assignee | ||
Comment 38•4 years ago
|
||
Simplifies understanding Selection::NotifySelectionListeners
.
Comment 39•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/69539461f67e
https://hg.mozilla.org/mozilla-central/rev/1aa8cbe35ebb
https://hg.mozilla.org/mozilla-central/rev/aabd5a62e61c
https://hg.mozilla.org/mozilla-central/rev/dd3db84e0787
https://hg.mozilla.org/mozilla-central/rev/d2322ca0888a
https://hg.mozilla.org/mozilla-central/rev/a76c67117050
https://hg.mozilla.org/mozilla-central/rev/7e158fb43cad
Assignee | ||
Comment 40•4 years ago
|
||
Simplifies its caller.
Assignee | ||
Comment 41•4 years ago
|
||
Depends on D68960
Assignee | ||
Comment 42•4 years ago
|
||
Depends on D68961
Comment 43•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/13865519a6e9 part 22) Move focusing common editing host to `Selection::StyledRanges`. r=masayuki
Comment 44•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/9033e89239a7 part 23) Factor dispatching `selectstart` event out. r=masayuki https://hg.mozilla.org/integration/autoland/rev/fe77c7e6dda4 part 24) Use local `doc` variable. r=masayuki
Comment 45•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/96ca51d3b909 part 25) Factor `AreUserSelectedRangesNonEmpty` out. r=masayuki
Comment 46•4 years ago
|
||
bugherder |
Assignee | ||
Comment 47•4 years ago
|
||
Comment 48•4 years ago
|
||
Pushed by mbrodesser@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39c389ff5ce2 part 26) Annotate `MaybeAddRangeAndTruncateOverlaps` with `MOZ_CAN_RUN_SCRIPT`. r=masayuki
Comment 50•4 years ago
|
||
bugherder |
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Updated•4 years ago
|
Description
•