Read-only Git mirror of the Mercurial gecko repositories at https://hg.mozilla.org. How to contribute: https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html
Перейти к файлу
Jan-Niklas Jaeschke 2243494a74 Bug 1810403: Allow `nsRange`s to be in multiple `Selection`s. r=masayuki
The Custom Highlight API allows a use case where a `Range` of a `Highlight`
is also used as `Selection`. Due to the decision to use the `Selection` mechanism
to display `Highlight`s, a `Range` can be part of several `Selection`s.
Since the `Range` has a pointer to its associated `Selection`
to notify about changes, this must be adapted to allow several `Selections`.

As a tradeoff of performance and memory usage, the `Selection`s are stored
as `mozilla::LinkedList`. A helper class `mozilla::SelectionListWrapper`
was implemented to allow `Selection`s to be in multiple of these lists
and without having to be derived from `LinkedListElement<T>`.

To simplify usage of the list, the use case  "does this range belong to Selection x?"
is wrapped into the convenience method`IsInSelection(Selection&)`;
The method previously named like this was renamed to `IsInAnySelection()`
to be named more precisely.

Registering and unregistering of the closest common inclusive ancestor
of the `Range` is done when the first `Selection` is registered and
the last `Selection` is unregistered.

Differential Revision: https://phabricator.services.mozilla.com/D169597
2023-02-21 12:25:28 +00:00
.cargo Bug 1816781 - Vendor wgpu changes. r=webgpu-reviewers,teoxoy 2023-02-15 16:45:33 +00:00
.vscode
accessible Bug 1817506 - Make accessible/tests/mochitest/tree/test_media.html wait for Fluent to update asynchronously the accessible value of the scrubber, r=Gijs. 2023-02-20 22:16:19 +00:00
browser Bug 1817888 - Properly mirror the web appearance images in about:preferences for RTL r=emilio,desktop-theme-reviewers,dao 2023-02-21 12:05:36 +00:00
build Bug 1817894 - Force-disable terminfo in clang. r=firefox-build-system-reviewers,andi 2023-02-21 08:32:33 +00:00
caps
chrome
config
devtools Bug 1817071 - Remove -moz-image-region support from layout. r=layout-reviewers,tnikkel 2023-02-21 12:19:44 +00:00
docs no bug - doc: refresh the Firefox Source Code Directory Structure page r=firefox-source-docs-reviewers,ahal DONTBUILD 2023-02-17 13:38:01 +00:00
docshell Bug 1812868 - Tweak RDM and theme setup. r=mstange 2023-02-20 00:01:11 +01:00
dom Bug 1810403: Allow `nsRange`s to be in multiple `Selection`s. r=masayuki 2023-02-21 12:25:28 +00:00
editor Bug 1810403: Allow `nsRange`s to be in multiple `Selection`s. r=masayuki 2023-02-21 12:25:28 +00:00
extensions Bug 1810403: Allow `nsRange`s to be in multiple `Selection`s. r=masayuki 2023-02-21 12:25:28 +00:00
gfx Backed out 4 changesets (bug 1813407) for causing Linux bp-hybrid bustages in WindowSurfaceProvider.h. CLOSED TREE 2023-02-21 12:54:32 +02:00
gradle/wrapper
hal
image Bug 1815404 - Replace most uses of gfxContext::CreateOrNull with stack-allocated contexts. r=gfx-reviewers,lsalzman 2023-02-21 07:28:25 +00:00
intl Backed out 9 changesets (bug 1817714, bug 1817722, bug 1817721, bug 1817719, bug 1817717, bug 1817720, bug 1817715, bug 1817716, bug 1817718) for causing bp-hybrid bustages in nsFind.cpp. CLOSED TREE 2023-02-21 11:06:43 +02:00
ipc
js Bug 1817483: Guard toString() calls with JitSpewIfEnabled in BacktrackingAllocator r=nbp 2023-02-20 13:17:50 +00:00
layout Bug 1810403: Allow `nsRange`s to be in multiple `Selection`s. r=masayuki 2023-02-21 12:25:28 +00:00
media
memory Bug 1814808 - Move chunk releasing out of the arena lock's critical section r=glandium 2023-02-17 04:17:24 +00:00
mfbt Backed out 9 changesets (bug 1799258) for causing multiple failures. CLOSED TREE 2023-02-15 12:18:44 +02:00
mobile Backed out changeset 343daddee430 (bug 1817381) for mochitest failures on test_bug574663.html. CLOSED TREE 2023-02-21 10:41:53 +02:00
modules Bug 1817312 - Make modules/libmar/sign buildable outside of a unified build environment r=andi 2023-02-19 21:40:37 +00:00
mozglue Bug 1817034 - add a new Timer profiler category to use it for markers in the Timer thread, r=canaltinova. 2023-02-17 13:11:08 +00:00
netwerk Bug 1814947, r=necko-reviewers,valentin 2023-02-21 08:44:33 +00:00
nsprpub
other-licenses
parser Bug 1444491 - Check the number of script blocking style sheets in autofocus algorithm r=hsivonen 2023-02-15 20:08:38 +00:00
python Bug 1810223 - Make find_sdk_tool from msix repackaging use configure to find the Windows SDK. r=firefox-build-system-reviewers,andi 2023-02-20 21:58:47 +00:00
remote Bug 1803392 - Remove usage of temporary file when printing to PDF. r=webdriver-reviewers,jdescottes 2023-02-17 13:54:07 +00:00
security Backed out 9 changesets (bug 1817714, bug 1817722, bug 1817721, bug 1817719, bug 1817717, bug 1817720, bug 1817715, bug 1817716, bug 1817718) for causing bp-hybrid bustages in nsFind.cpp. CLOSED TREE 2023-02-21 11:06:43 +02:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - r=release-managers,pascalc 2023-02-20 14:08:12 +00:00
servo Bug 1817071 - Remove -moz-image-region support from layout. r=layout-reviewers,tnikkel 2023-02-21 12:19:44 +00:00
startupcache Bug 1817313 - Make startupcache/ buildable outside of a unified build environment r=andi 2023-02-19 21:40:36 +00:00
storage
supply-chain Bug 1817458 - vendor authenticator-rs 0.4.0-alpha.9. r=keeler,supply-chain-reviewers 2023-02-17 19:13:50 +00:00
taskcluster Backed out changeset 5c47ae2de529 (bug 1805664) for causing bug 1817894 and breaking clang 15. CLOSED TREE 2023-02-21 03:21:39 +02:00
testing Bug 1810403: Allow `nsRange`s to be in multiple `Selection`s. r=masayuki 2023-02-21 12:25:28 +00:00
third_party Bug 1817263 - fix OS picker behavior under Wayland r=ng,jib,stransky 2023-02-20 21:25:56 +00:00
toolkit Bug 1816989 - Remove from InspectJSONSchema.py manual addition of the file module_dir to sys.path.append. r=willdurand 2023-02-21 11:32:51 +00:00
tools Bug 1817434 - set up some try presets for frontend use, r=mossop CLOSED TREE 2023-02-20 15:33:28 +00:00
uriloader Bug 1807260 - ensure local files opened have their extensions taken into account when determining what to do with them, r=mhowell 2023-02-20 16:44:19 +00:00
view
widget Backed out 4 changesets (bug 1813407) for causing Linux bp-hybrid bustages in WindowSurfaceProvider.h. CLOSED TREE 2023-02-21 12:54:32 +02:00
xpcom Bug 1812868 - Expose scrollbar-inline-size as a chrome-only environment variable. r=mstange 2023-02-20 00:01:12 +01:00
xpfe/appshell Bug 1816436 - Narrow down the pipMask on GTK. r=stransky,mconley 2023-02-16 14:50:23 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore
.cron.yml Bug 1817052 - Ship geckoview twice a day r=diannaS DONTBUILD 2023-02-16 17:42:16 +00:00
.eslintignore Bug 1817183 - Migrate most of services/fxaccounts to ES modules. r=markh 2023-02-17 16:34:42 +00:00
.eslintrc-test-paths.js
.eslintrc.js
.flake8
.git-blame-ignore-revs
.gitattributes
.gitignore
.hg-annotate-ignore-revs
.hg-format-source
.hgignore
.hgtags
.isort.cfg
.lando.ini
.lldbinit
.mailmap
.prettierignore
.prettierrc.js
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER Bug 1812154 - (fix-9d9c2d5795) Removed dependency transport:stun_types fixing error generating build files. r=mjf - moz.build file updates 2023-02-13 09:51:15 -07:00
Cargo.lock Bug 1817458 - vendor authenticator-rs 0.4.0-alpha.9. r=keeler,supply-chain-reviewers 2023-02-17 19:13:50 +00:00
Cargo.toml
GNUmakefile
LICENSE
Makefile.in
README.txt
aclocal.m4
build.gradle
client.mk
client.py
configure
configure.py
gradle.properties
gradlew
gradlew.bat
mach
mach.cmd
mach.ps1
mots.yaml
moz.build
moz.configure Bug 1817372 - Allow -windows-msvc and -windows-gnu triplets as host and target. r=firefox-build-system-reviewers,andi 2023-02-17 07:42:48 +00:00
mozilla-config.h.in
old-configure.in
package-lock.json
package.json
settings.gradle
substitute-local-geckoview.gradle
test.mozbuild

README.txt

An explanation of the Firefox Source Code Directory Structure and links to
project pages with documentation can be found at:

    https://firefox-source-docs.mozilla.org/contributing/directory_structure.html

For information on how to build Firefox from the source code and create the patch see:

    https://firefox-source-docs.mozilla.org/contributing/contribution_quickref.html

If you have a question about developing Firefox, and can't find the solution
on https://firefox-source-docs.mozilla.org/, you can try asking your question on Matrix at chat.mozilla.org in `Introduction` (https://chat.mozilla.org/#/room/#introduction:mozilla.org) channel.


Nightly development builds can be downloaded from:

    https://archive.mozilla.org/pub/firefox/nightly/latest-mozilla-central/
            - or -
    https://www.mozilla.org/firefox/channel/desktop/#nightly

Keep in mind that nightly builds, which are used by Firefox developers for
testing, may be buggy.