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
Go to file
Alexis Beingessner 33d729a0f1 Bug 1555356 - Make images inside of SVGs active. r=aosmond
This is done using a similar approach to CreateWebRenderCommands
but slightly modified. In particular the active layer check needs
to be done before we're ready to CreateWebRenderCommands, but once
we decide to activate an item, we can't let CreateWebRenderCommands
fail. Unfortunately, the need to query ImageLib for support means
we need to do basically ~all of the work of CreateWebRenderCommands
to do this check.

As such, this introduces a modified version of CreateWebRenderCommands
that SVGGeometryFrames implement with a "dry run" flag. When true,
it runs the same code but stops short of mutating the WR DL/state.

ImageLib may be encouraged to do some extra work that could be thrown
away, but I'm not sure there's any way to avoid that.

For now, only SVGImageFrame actually provides an implementation. The
bulk of the implementation is handling the on-by-default
preserveAspectRatio feature of SVG images. It was cleaner to just
reimplement that logic than reuse the existing preserveAspectRatio
code, as it was too tangled up in the particulars of how the PaintSVG
path is designed.

Differential Revision: https://phabricator.services.mozilla.com/D59925

--HG--
extra : moz-landing-system : lando
2020-02-13 18:39:27 +00:00
.cargo Backed out changeset b6e7f733e07a (bug 1614711) for build bustages at third_party/rust/neqo-crypto/src/lib.rs ona CLOSED TREE 2020-02-13 20:36:29 +02:00
.vscode Bug 1594520 - Change directory before running mach in .vscode/tasks.json on Windows. r=jya 2019-11-14 10:35:12 +00:00
accessible Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
browser No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2020-02-13 18:39:13 +00:00
build Bug 1614994 - Fix "ImportError: No module named shutil_which" in configure r=froydnj 2020-02-13 18:34:12 +00:00
caps Bug 1613985 - Use default for equivalent-to-default constructors/destructors in caps. r=smaug 2020-02-12 13:39:13 +00:00
chrome Bug 1609996 - Reorder some includes affected by the previous patches. r=froydnj 2020-01-20 16:19:48 +00:00
config Backed out changeset 54f82c735487 (bug 1613263) for causing diff artifact bustages in generated-files.diff.txt CLOSED TREE 2020-02-13 03:51:15 +02:00
devtools Bug 1614712 - Add a requestId to the profiler's WebChannel messages; r=julienw 2020-02-12 22:30:51 +00:00
docs Bug 1599099 - Generate in-tree perfdocs using ./mach lint --fix. r=octavian_negru,sparky 2020-02-12 07:00:15 +00:00
docshell Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
dom Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
editor Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
extensions Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
gfx Bug 1555356 - Make images inside of SVGs active. r=aosmond 2020-02-13 18:39:27 +00:00
gradle/wrapper Bug 1595926 - Don't use distribution256Sum until Android Studio is fixed. r=snorp 2019-11-14 17:04:32 +00:00
hal Bug 1605934 - Use nested namespaces r=sg 2020-01-18 13:48:34 +00:00
image Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
intl Bug 1611568 - Ignore combining diacritic characters when "Match Diacritics" is off. r=jfkthame 2020-02-10 18:09:05 +00:00
ipc Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
js Bug 1615007 - Define hasInnerFunctions accurately across all scripts. r=tcampbell 2020-02-13 17:21:18 +00:00
layout Bug 1555356 - Make images inside of SVGs active. r=aosmond 2020-02-13 18:39:27 +00:00
media Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
memory Bug 1614875 - Tweak constants to prevent saturation and improve the hit rate. r=glandium 2020-02-13 08:37:42 +00:00
mfbt Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
mobile Bug 1614990 - Update WebPushController.onSubscriptionChanged to take only the scope. r=snorp 2020-02-12 17:15:37 +00:00
modules Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
mozglue Bug 1615228 - Suppress race with base::Thread::Stop(). r=froydnj 2020-02-13 14:27:38 +00:00
netwerk Backed out changeset b6e7f733e07a (bug 1614711) for build bustages at third_party/rust/neqo-crypto/src/lib.rs ona CLOSED TREE 2020-02-13 20:36:29 +02:00
nsprpub Bug 1600803 - NSPR_4_25_RTM for Firefox 74. r=kjacobs UPGRADE_NSPR_RELEASE 2020-02-03 12:17:20 +00:00
other-licenses Backed out changeset fbbb42a15738 (bug 1585356) for bustage on city.cpp. CLOSED TREE 2020-01-08 00:51:00 +02:00
parser Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
python Bug 1608215 - port pippki DTD to fluent r=Gijs,fluent-reviewers,flod 2020-02-13 15:27:17 +00:00
remote Bug 1614891 - Clarify the ESLint situation around some remote/ files. Remove unnecessary remote/test/demo.js. r=remote-protocol-reviewers,whimboo 2020-02-13 09:23:19 +00:00
security No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2020-02-13 18:39:13 +00:00
services No Bug, mozilla-central repo-update HSTS HPKP blocklist remote-settings - a=repo-update r=RyanVM 2020-02-13 18:39:13 +00:00
servo Bug 1614648 - Make GradientItem and ColorStop support angular color stops. r=emilio 2020-02-12 18:22:51 +00:00
startupcache Backed out 2 changesets (bug 1607505) for causing xpcshell permafailures in netwerk/test/unit/test_alt-data_simple.js CLOSED TREE 2020-02-12 22:37:08 +02:00
storage Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
taskcluster Merge autoland to mozilla-central a=merge 2020-02-13 05:29:59 +02:00
testing Bug 1615144 - Fix expectations for MediaRecorder-no-sink.https.html on win aarch64, r=aryx 2020-02-13 14:12:01 +00:00
third_party Backed out changeset b6e7f733e07a (bug 1614711) for build bustages at third_party/rust/neqo-crypto/src/lib.rs ona CLOSED TREE 2020-02-13 20:36:29 +02:00
toolkit Bug 1614376 - Part 1. Add support for an allowlist to GfxInfo. r=jrmuizel 2020-02-13 16:06:41 +00:00
tools Bug 1041962 - Include libgen.h for basename r=jseward 2020-02-13 14:36:09 +00:00
uriloader Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
view Bug 1614208 - Stop including AccessibleCaretEventHub and PresShell.h from Selection.h. r=TYLin 2020-02-11 01:22:29 +00:00
widget Bug 1614376 - Part 3. Add support for device ID ranges in blocklist rules. r=jrmuizel 2020-02-13 15:51:40 +00:00
xpcom Bug 1611415 - Prefer using std::move over forget. r=froydnj 2020-02-13 14:38:48 +00:00
xpfe/appshell Bug 1614208 - Stop including AccessibleCaretEventHub and PresShell.h from Selection.h. r=TYLin 2020-02-11 01:22:29 +00:00
.arcconfig
.clang-format
.clang-format-ignore Bug 1353652 - Initial Draft of MPRIS API Provider (Media API on Linux) r=alwu 2020-02-12 13:10:50 +00:00
.cron.yml Bug 1612540 - bake geckoview in the push phase of releases. r=jlorenzo 2020-02-11 11:10:42 +00:00
.eslintignore Bug 1614822 - Enable ESLint for testing/mochitest/tests/Harness_sanity/. r=kmag 2020-02-12 19:38:40 +00:00
.eslintrc.js Bug 1614822 - Enable ESLint for testing/mochitest/tests/Harness_sanity/. r=kmag 2020-02-12 19:38:40 +00:00
.flake8 Bug 1611023: [taskgraph] Fix python3 flake8 errors in taskgraph; r=Callek 2020-01-23 03:35:31 +00:00
.gdbinit
.gdbinit_python
.git-blame-ignore-revs
.gitattributes
.gitignore Bug 1614314 - Use GitHub as upstream for the Java code of the HTML parser. r=alchen 2020-02-10 15:05:17 +00:00
.hg-annotate-ignore-revs
.hg-format-source
.hgignore Bug 1600339 - Measure responsiveness while evaluating messages r=k88hudson,mconley 2020-01-18 21:08:40 +00:00
.hgtags No bug - Tagging mozilla-central f53ecf8eee2a0d2a7705d7ea3ec8682028e922a0 with FIREFOX_NIGHTLY_74_END a=release DONTBUILD CLOSED TREE 2020-02-10 10:54:50 +00:00
.lldbinit Bug 1603804. Move third_party/python/lldbutils to python/lldbutils. r=ahal 2019-12-20 17:10:12 +00:00
.mailmap
.prettierignore Bug 1609671 - Inspect binding should try to get the sourcemapped location while inspecting a function. r=jdescottes,vporof 2020-01-24 12:58:24 +00:00
.prettierrc Bug 1601681 - Re-enable unix-line endings on ESLint controlled files. r=mossop 2019-12-11 08:12:57 +00:00
.taskcluster.yml Bug 1606869: Switch decision task docker caches to match the rest the in-tree caches; r=Callek 2020-01-03 22:18:29 +00:00
.trackerignore
.yamllint Bug 1606009 - Fix & silent some tests r=Callek 2019-12-26 22:13:18 +00:00
.ycm_extra_conf.py
aclocal.m4
AUTHORS
build.gradle Bug 1608570 - Remove some old Fennec-related build variables r=nalexander 2020-01-10 22:51:03 +00:00
Cargo.lock Backed out changeset b6e7f733e07a (bug 1614711) for build bustages at third_party/rust/neqo-crypto/src/lib.rs ona CLOSED TREE 2020-02-13 20:36:29 +02:00
Cargo.toml Bug 1614365 - use a git hash for packed_smid; r=hsivonen 2020-02-12 21:18:32 +00:00
client.mk
client.py
CLOBBER Update configs. IGNORE BROKEN CHANGESETS CLOSED TREE NO BUG a=release ba=release 2019-12-02 11:59:11 +00:00
configure.in
configure.py Bug 1593948 - Touch clobber in configure.py instead of clobber.py; r=firefox-build-system-reviewers,chmanchester 2019-11-19 21:49:13 +00:00
GNUmakefile
gradle.properties
gradlew
gradlew.bat
LEGAL
LICENSE
mach Bug 1614771 - Run ./mach addtest with Python 3 r=ahal 2020-02-13 16:56:44 +00:00
Makefile.in Bug 1557788 - Remove spurious MOZ_PROFILE_USE ifndefs; r=firefox-build-system-reviewers,chmanchester 2019-12-09 18:03:53 +00:00
moz.build Bug 1613526 - Create a code quality documentation and move the appropriate docs r=ahal 2020-02-11 09:11:44 +00:00
moz.configure Backed out changeset 84184c894e33 (bug 1609881) for multiple failures e.g assertion failure StaticPrefList_layers.h on a CLOSED TREE 2020-02-12 21:05:21 +02:00
mozilla-config.h.in
old-configure.in Bug 1614053 - land NSS 735ed2e47040 UPGRADE_NSS_RELEASE, r=kjacobs 2020-02-12 16:22:10 +00:00
package-lock.json Bug 1607172 - Update ESLint to the latest version and use ignorePatterns to ignore paths listed in ThirdPartyPaths.txt. r=mossop 2020-01-21 20:46:06 +00:00
package.json Bug 1607172 - Update ESLint to the latest version and use ignorePatterns to ignore paths listed in ThirdPartyPaths.txt. r=mossop 2020-01-21 20:46:06 +00:00
README.txt Bug 1606026: Move existing documentation into new locations r=sylvestre 2020-01-06 16:38:34 +00:00
settings.gradle Bug 1598010 - Move examples into mozilla-central r=agi 2019-11-22 13:30:57 +00:00
substitute-local-geckoview.gradle Bug 1581979 - Use -SNAPSHOT versions locally to enable the local GeckoView substitution flow. r=nalexander 2019-12-11 21:29:44 +00:00
test.mozbuild

An explanation of the Mozilla 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 Mozilla from the source code and create the patch see:

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

If you have a question about developing Mozilla, and can't find the solution
on https://developer.mozilla.org, you can try asking your question on IRC at irc.mozilla.org in #introduction 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 Mozilla developers for
testing, may be buggy.