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
Перейти к файлу
Razvan Caliman 69cc4c1599 Bug 1572654 - [devtools] Delegate toggling flexbox highlighter from CSS property swatches up to Rules view & update tests r=jdescottes
Depends on D96080

This patch leverages work done in D90247 for the `SelectorHighlighter`. Here, we delegate event handling of clicks on flexbox swatches next to "flex" and "inline-flex" CSS properties up to the Rules view. This will toggle the Flexbox highlighter from a single place in the Rules view.

When the Flexbox highlighter is shown/hidden, the swatches are marked "active" accordingly. We don't differentiate which swatch to mark if there are multiple "flex" properties. Only properties matching the selected node are shown. `display` is not an inheritable property so there will be only one winning `display: flex` declaration for the selected node. Even if there are duplicates, they will be marked overwritten. Swatches are hidden for overwritten properties. This eases the work when toggling some of the duplicates, the winning one will already show an "active" swatch.

This patch looks more scary than it is. The changes in tests are mass-renames to a new CSS class name and to use the same helpers.

It's easier if you start reviewing `highlighters-overlay.js`, then `text-property-editor.js`, then `rules.js`.

Differential Revision: https://phabricator.services.mozilla.com/D96225
2020-12-10 14:13:35 +00:00
.cargo Backed out changeset a8c087a36965 (bug 1681811) for failures on test_case_mp4. CLOSED TREE 2020-12-11 22:51:06 +02:00
.vscode
accessible Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika 2020-12-11 15:43:19 +00:00
browser Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya 2020-12-14 06:04:13 +00:00
build Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
caps Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
chrome Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
config Bug 1673027 - Part 2: Update tzdata in ICU data files to 2020d. r=jwalden 2020-12-04 17:23:41 +00:00
devtools Bug 1572654 - [devtools] Delegate toggling flexbox highlighter from CSS property swatches up to Rules view & update tests r=jdescottes 2020-12-10 14:13:35 +00:00
docs Bug 1681944 - Remove the remaining instances of crash-stats.mozilla.com and replace them with the .org domain r=willkg DONTBUILD 2020-12-12 08:41:20 +00:00
docshell Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika 2020-12-11 15:43:19 +00:00
dom Bug 1679745 - Avoid name collision with compiler macro sun on Solaris r=chunmin 2020-12-14 07:32:15 +00:00
editor Bug 1671764 - Part 2. Respect application/system locale if language code is matched. r=masayuki 2020-12-14 03:01:08 +00:00
extensions Bug 1671764 - Part 1. Use ACString for dictionary language instead. r=masayuki 2020-12-14 03:01:05 +00:00
gfx Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya 2020-12-14 06:04:13 +00:00
gradle/wrapper
hal Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
image Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
intl Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
ipc Bug 1677466 - Move ParamTraits specializations with extra dependencies out of IPCMessageUtils.h. r=mccr8 2020-12-10 11:09:21 +00:00
js Bug 1675602 - Use WebAssembly's type system for TypedObject. r=lth 2020-12-13 01:13:56 +00:00
layout Bug 1487181 - Ensure that the scroll metadata of a transform layer child of a perspective layer has the correct scroll clip as well. r=mattwoodrow 2020-12-14 02:50:04 +00:00
media Bug 1681173 - Add updatebot key to moz.yaml file schema; r=tjr 2020-12-08 18:25:37 +00:00
memory Bug 1681003 - When realloc() grows an allocation, allow switching out of public arenas if plain malloc() would've done that. r=glandium 2020-12-10 10:59:09 +00:00
mfbt Bug 1681546 - rename MOZ_ATOMIC_BITFIELDS methods to Load/Store. r=valentin,necko-reviewers 2020-12-09 18:14:55 +00:00
mobile Bug 1677838 - [1.1] Verify the image resource size string is valid before accepting it. r=geckoview-reviewers,agi 2020-12-08 21:07:30 +00:00
modules Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya 2020-12-14 06:04:13 +00:00
mozglue Bug 1640445 - Avoid a race between the GC and WriteCache() with an extra field. r=kmag,decoder 2020-12-11 23:25:27 +00:00
netwerk Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
nsprpub
other-licenses
parser Bug 1680269 - Fix includes for nsHtml5StreamParser. r=hsivonen 2020-12-07 14:21:43 +00:00
python Bug 1533760- lint fix. a=fix. CLOSED TREE 2020-12-10 10:48:22 +02:00
remote Bug 1681935 - Replace dependency to failure with thiserror in remote crate. r=remote-protocol-reviewers,jgraham 2020-12-11 14:34:23 +00:00
security Bug 1677548 - land NSS NSS_3_60_RTM UPGRADE_NSS_RELEASE, r=bbeurdouche 2020-12-11 17:37:19 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP remote-settings - a=repo-update r=jcristau 2020-12-10 14:31:46 +00:00
servo Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
startupcache Bug 1660470 - Add missing include directives/forward declarations. r=nika 2020-11-23 16:21:38 +00:00
storage Bug 1678062 - Remove unnecessary includes. r=andi 2020-11-23 16:12:02 +00:00
taskcluster Bug 1681962 - Update cargo-apk CI dependency to a version which can read the new Cargo.lock file format. r=jrmuizel 2020-12-11 17:00:48 +00:00
testing Bug 1662816: Remove qualifiers on intermittent-failure annotation for intersection-observer/timestamp.html. r=emilio 2020-12-13 21:32:41 +00:00
third_party Bug 1681957 - Migrate gecko-fuzz-targets away from rkv 0.10. r=vporof 2020-12-12 08:32:40 +00:00
toolkit Bug 1679745 - Avoid name collision with compiler macro sun on Solaris r=chunmin 2020-12-14 07:32:15 +00:00
tools Bug 1679058 - codespell follow up - black compatible 2020-12-13 19:57:04 +00:00
uriloader Backed out changeset f3aaf04fce3b (bug 1679758) for Devtool failures in browser_styleeditor_syncAddProperty.js. CLOSED TREE 2020-12-13 16:38:21 +02:00
view
widget Bug 1678684 - Initialize DXVA on the media thread, remove the mostly-unused dll blocklist, and the crashguard. r=jya 2020-12-14 06:04:13 +00:00
xpcom Bug 1675073: Manually set the stack size for TaskController pool threads. r=aosmond,smaug 2020-12-14 01:07:59 +00:00
xpfe/appshell Bug 1635914 - Move active flag handling explicitly to BrowsingContext. r=nika 2020-12-11 15:43:19 +00:00
.arcconfig
.babel-eslint.rc.js
.clang-format
.clang-format-ignore
.cron.yml Bug 1680028 - run l10n-bumper daily instead of hourly. r=releng-reviewers,jmaher,aki 2020-12-02 20:22:57 +00:00
.eslintignore
.eslintrc.js Bug 1675349: Update tests under dom/plugins/test for the removal of plugins. r=jmathies 2020-11-18 15:58:15 +00:00
.flake8 Bug 1673700 - Don't use double quotes around strings in definition of `fork_interpose` r=firefox-build-system-reviewers,glandium 2020-10-29 15:47:14 +00:00
.git-blame-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.gitattributes
.gitignore Bug 1666347 - Delete assorted dead code after removal of vendored `psutil` r=firefox-build-system-reviewers,rstewart 2020-11-27 16:21:07 +00:00
.hg-annotate-ignore-revs Bug 1648010 - Add revisions for the replacement of literal string macros by string literals to the ignore sets. r=marco,glandium DONTBUILD 2020-12-01 09:04:42 +00:00
.hg-format-source
.hgignore Bug 1666347 - Delete assorted dead code after removal of vendored `psutil` r=firefox-build-system-reviewers,rstewart 2020-11-27 16:21:07 +00:00
.hgtags No bug - tagging efceae9186cd456bb70240aa851855efb5afd316 with FIREFOX_NIGHTLY_84_END a=release DONTBUILD CLOSED TREE 2020-11-16 10:11:08 +00:00
.lldbinit
.mailmap
.prettierignore
.prettierrc
.taskcluster.yml
.trackerignore
.yamllint
.ycm_extra_conf.py
AUTHORS
CLOBBER
Cargo.lock Bug 1681957 - Migrate gecko-fuzz-targets away from rkv 0.10. r=vporof 2020-12-12 08:32:40 +00:00
Cargo.toml Bug 1681485 - Revendor Cranelift to 3334d92350da40b90d2529c147db3ea44918b558. r=lth. 2020-12-10 06:51:48 +00:00
GNUmakefile
LICENSE
Makefile.in Bug 1675086 - drop reference to 'pgo' from Windows AArch EME artifact build. r=nalexander 2020-11-03 22:46:57 +00:00
README.txt
aclocal.m4
build.gradle Bug 1671460 - Update to apilint 0.4.0. r=snorp 2020-11-02 19:42:25 +00:00
client.mk
client.py
configure.in
configure.py
gradle.properties
gradlew
gradlew.bat
mach Bug 1638947 - Run 'mach android' with python 3; r=nalexander 2020-11-09 17:54:33 +00:00
moz.build Bug 1679938 - Don't recurse the build into mfbt for projects that don't need it. r=firefox-build-system-reviewers,mhentges 2020-12-01 23:52:03 +00:00
moz.configure Bug 1677742 - Followups for new pass manager LTO r=glandium 2020-11-21 02:13:04 +00:00
mozilla-config.h.in
old-configure.in Bug 1654109 - Use PDB basename in cross-compiled Windows builds r=firefox-build-system-reviewers,mhentges 2020-11-11 02:34:44 +00:00
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.