Граф коммитов

38590 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta c75bed1584 Bug 1660054 - Hook up the zoom-reset action to also reset APZ/scaling zoom. r=Gijs,nika,botond
The goal here is to hook up the ctrl+0 keyboard shortcut to reset the scaling
zoom applied by pinch gestures (on touchscreen or trackpad), in addition to
resetting the reflow zoom (aka full zoom). This patch also makes other mechanisms
to reset the reflow zoom (e.g. clicking on the "100%" label in the hamburger menu)
also reset scaling zoom, which I think makes sense for consistency.

Most of this patch is just plumbing, but I'm unfamiliar with these codepaths
so requesting review from relevant owners to make sure it's sane.

Differential Revision: https://phabricator.services.mozilla.com/D94624
2020-10-28 19:14:18 +00:00
Jeff Muizelaar 938d2dffe9 Bug 1672899. Avoid CGFonts in ctfont_create_exact_copy when possible. r=jfkthame
We should be able to use CTFontCreateCopyWithAttributes for non-system fonts
because we don't need to worry about them changing. This avoids the leaks
caused by going through a CGFont.

Differential Revision: https://phabricator.services.mozilla.com/D94772
2020-10-28 14:16:41 +00:00
Jeff Muizelaar fcfa9a589a Bug 1673715 - Make gfx.webrender.software a static pref. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D94885
2020-10-27 20:34:59 +00:00
Jeff Gilbert cf7ecdcbfb Bug 1671054 - Decide AllowWebglOop after InitWebRenderConfig. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D94785
2020-10-27 19:36:36 +00:00
Nicolas Silva 23aba1fe38 Bug 1673320 - Dump color linear and glyph texture cache arrays as SVG during frame captures. r=jnicol
The visualization shows texture arrays (one array per row) with allocations in blue and free space in dark gray, as well as the slab size for each region. This only dumps the texture arrays for color+linear images and glyphs since most of the interesting stuff is there, but adding other arrays will be simple if needed.

Differential Revision: https://phabricator.services.mozilla.com/D94715
2020-10-27 09:34:38 +00:00
Botond Ballo 8f4c0e58eb Bug 1673492 - Downgrade the assertion about two layers that scroll together having different ancestor transforms, to an NS_ASSERTION. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D94787
2020-10-26 23:21:01 +00:00
Ricky Stewart 02a7b4ebdf Bug 1654103: Standardize on Black for Python code in `mozilla-central`.
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-26 18:34:53 +00:00
Jonathan Kew eae3c7f86f Bug 1673098 - Ensure we use our implementation of the get_nominal_glyph callback when shaping a CFF font, so that hyphen fallbacks can take effect. r=lsalzman
CLOSED TREE

Differential Revision: https://phabricator.services.mozilla.com/D94681
2020-10-26 05:33:06 +00:00
Mihai Alexandru Michis d38909b148 Backed out changeset 3714bd86365f (bug 1672489) for accidentally disabling wr on Win7.
CLOSED TREE
2020-10-26 15:57:01 +02:00
Mihai Alexandru Michis 36e7dbc5bc Backed out changeset 0a6c18c6e9d5 (bug 1673098) for causing webrender failures.
CLOSED TREE
2020-10-26 15:35:55 +02:00
Nicolas Silva 04d3a4a876 Bug 1672836 - Read the profile counters before handing them to the profiler. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D94587
2020-10-23 15:20:35 +00:00
Jonathan Kew 8da8e8eeda Bug 1673098 - Ensure we use our implementation of the get_nominal_glyph callback when shaping a CFF font, so that hyphen fallbacks can take effect. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D94681
2020-10-26 05:33:06 +00:00
Alaa Emad aa2ac69761 Bug 1507189 - Replace nsIPresShell::ScrollDirection with an enumset over layers::ScrollDirection r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94146
2020-10-26 04:04:16 +00:00
Matt Woodrow 0ae0a1fafb Bug 1672621 - Don't create new texture clients if our forwarder has gone away. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D94540
2020-10-25 07:50:55 +00:00
Matt Woodrow 04723c0594 Bug 1672858 - Handle RDD process crashes when looking up textures in the GPU process. r=jya
Differential Revision: https://phabricator.services.mozilla.com/D94546
2020-10-25 07:46:04 +00:00
Jean-Yves Avenard c7420b1155 Bug 1672420 - Initialise SyncObject in non-e10s mode. r=nical
We're not always in a content process!

Differential Revision: https://phabricator.services.mozilla.com/D94579
2020-10-24 06:11:47 +00:00
sanketh 2c7a08b95e Bug 1664365 - Remove mingw workaround for COMPOSITIONOBJECT_ALL_ACCESS r=tjr
Differential Revision: https://phabricator.services.mozilla.com/D94659
2020-10-24 01:26:42 +00:00
Bogdan Tara 2aa6f8fc6d Backed out changeset 2422df5eb482 (bug 1672420) for causing a assertion failure on SyncObject.cpp CLOSED TREE 2020-10-24 03:43:22 +03:00
Bogdan Tara da1098d4aa Backed out 10 changesets (bug 1654103, bug 1672023, bug 1518999) for PanZoomControllerTest.touchEventForResult gv-junit failures CLOSED TREE
Backed out changeset ff3fb0b4a512 (bug 1672023)
Backed out changeset e7834b600201 (bug 1654103)
Backed out changeset 807893ca8069 (bug 1518999)
Backed out changeset 13e6b92440e9 (bug 1518999)
Backed out changeset 8b2ac5a6c98a (bug 1518999)
Backed out changeset 575748295752 (bug 1518999)
Backed out changeset 65f07ce7b39b (bug 1518999)
Backed out changeset 4bb80556158d (bug 1518999)
Backed out changeset 8ac8461d7bd7 (bug 1518999)
Backed out changeset e8ba13ee17f5 (bug 1518999)
2020-10-24 03:36:18 +03:00
Markus Stange 3eaf2c04d4 Bug 1346601 - Set surfaceRect to empty when surface becomes null. r=bas
Differential Revision: https://phabricator.services.mozilla.com/D94600
2020-10-23 22:33:14 +00:00
Jeff Muizelaar 07cb9dd9f8 Bug 1672489 - Don't restrict DirectComposition to Win10 on Nightly. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D94359
2020-10-23 21:33:02 +00:00
Jean-Yves Avenard 9dbc71af63 Bug 1672420 - Initialise SyncObject in non-e10s mode. r=nical
We're not always in a content process!

Differential Revision: https://phabricator.services.mozilla.com/D94579
2020-10-23 13:06:02 +00:00
Ricky Stewart c0cea3b0fa Bug 1654103: Standardize on Black for Python code in `mozilla-central`. r=remote-protocol-reviewers,marionette-reviewers,webdriver-reviewers,perftest-reviewers,devtools-backward-compat-reviewers,jgilbert,preferences-reviewers,sylvestre,maja_zf,webcompat-reviewers,denschub,ntim,whimboo,sparky
Allow-list all Python code in tree for use with the black linter, and re-format all code in-tree accordingly.

To produce this patch I did all of the following:

1. Make changes to tools/lint/black.yml to remove include: stanza and update list of source extensions.

2. Run ./mach lint --linter black --fix

3. Make some ad-hoc manual updates to python/mozbuild/mozbuild/test/configure/test_configure.py -- it has some hard-coded line numbers that the reformat breaks.

4. Make some ad-hoc manual updates to `testing/marionette/client/setup.py`, `testing/marionette/harness/setup.py`, and `testing/firefox-ui/harness/setup.py`, which have hard-coded regexes that break after the reformat.

5. Add a set of exclusions to black.yml. These will be deleted in a follow-up bug (1672023).

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D94045
2020-10-23 20:40:42 +00:00
Andrew Osmond bc0f206cd6 Bug 1670939 - Make PImageBridge::WillClose async instead of sync. r=nical,ipc-reviewers,jld
Differential Revision: https://phabricator.services.mozilla.com/D93343
2020-10-23 18:29:15 +00:00
Andrew Osmond 7dbd895ab1 Bug 1672464 - Block WebRender for NVIDIA users with mixed refresh rates. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D94477
2020-10-23 15:12:41 +00:00
Jonathan Kew f2b9ae0184 Bug 1667053 - Refactor macOS print settings implementation for clarity. r=jwatt
Rather than wrapping an NSPrintInfo in nsPrintSettingsX, where we then have two
(potentially conflicting) sources of truth about various settings, we treat the
settings in the base nsPrintInfo class as authoritative, and just apply them to
a temporary NSPrintInfo when needed to interact with platform APIs.

Differential Revision: https://phabricator.services.mozilla.com/D92966
2020-10-23 11:07:21 +00:00
sotaro 95f73a0bef Bug 1672139 - Remove pause handlig from CompositorBridgeParent::NotifyPipelineRendered() r=nical
When the problem happened, pop-up widget's content process's WebRenderBridgeParent(non-root) was attached to different CompositorBridgeParent. Then the WebRenderBridgeParent was moved to correct CompositorBridgeParent by CompositorBridgeParent::RecvAdoptChild() call. It triggered NotifyPipelineRendered(). In this case, SendDidComposite() have to be called, since WebRenderBridgeParent(non-root) is moving to different WebRender instance. But it is not called when CompositorBridgeParent. is paused.

Differential Revision: https://phabricator.services.mozilla.com/D94552
2020-10-23 10:48:58 +00:00
sotaro 4196caccaf Bug 1672565 - Use ScheduleForcedGenerateFrame() in WebRenderBridgeParent::RecvForceComposite() r=nical
Bug 1656211 added WebRenderBridgeParent::RecvForceComposite(). It triggers generate frame even when widget is not ready for rendering.

Differential Revision: https://phabricator.services.mozilla.com/D94553
2020-10-23 10:29:00 +00:00
Lee Salzman 555178bed2 Bug 1672898 - increase precision of SWGL's YUV composition stepping. r=mattwoodrow
The YUV composition in SWGL in particular tries to convert the position and step
from float to integer at the beginning, and step entirely in integer coords per
pixel rather than float to speed this up. However, the amount of precision used
was inadequate and could lead to significant error. This adds some extra precision
to the stepping code to reduce this error.

Differential Revision: https://phabricator.services.mozilla.com/D94547
2020-10-23 02:15:59 +00:00
Andrew Osmond b2c20be0bc Bug 1671518 - Improve hardware stretching support to check all monitors and configurations. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D93704
2020-10-22 19:53:23 +00:00
Kartikaya Gupta 6c28ee8900 Bug 1671995 - Do coordinate conversion for touch sequences before starting synthesization. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94443
2020-10-22 18:38:26 +00:00
Kartikaya Gupta d5a059626e Bug 1671995 - Remove yielding mechanism from synthesizeNativeTouchSequences. r=botond
The yield mechanism in this function, whereby the caller could insert a null
entry in the input array to trigger a yield, was never actually used. And
while attempting to use it, I discovered it wasn't really fit for the intended
purpose because it doesn't wait for the event to be delivered to APZ.

Instead we can remove this yielding mechanism and turn the generation into a
regular function. Propagating this outwards also allows a couple of continuation-
style tests to become regular async tests.

Differential Revision: https://phabricator.services.mozilla.com/D94442
2020-10-22 19:33:18 +00:00
Botond Ballo bbfec388ad Bug 1669588 - Avoid data races accessing APZCTreeManager::mTestSampleTime. r=kats
This variable is set from the compositor thread, and read from both
the sampler thread (e.g. when sampling animations) and the
controller thread (e.g. during input block creation), so access to
it needs to be synchronized.

Differential Revision: https://phabricator.services.mozilla.com/D94471
2020-10-22 19:27:14 +00:00
Botond Ballo d980503d1e Bug 1669588 - Delay the ZoomToRect call in ZoomToFocusedInput until after a refresh if appropriate. r=kats
ZoomToFocusedInput calls ScrollContentIntoView() which may queue up
one or more main-thread scroll position updates that get sent to
APZ as part of the next transaction.

If such updates were produced, we want the ZoomToRect call to arrive
at APZ after the updates, otherwise the updates can cancel the
zoom animation that APZ starts in response to the ZoomToRect.

Differential Revision: https://phabricator.services.mozilla.com/D93898
2020-10-22 19:27:06 +00:00
Botond Ballo 85cb621970 Bug 1669588 - Factor out a OneShotPostRefreshObserver utility class. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D93897
2020-10-22 19:26:51 +00:00
Kartikaya Gupta 784b817e2b Bug 1672714 - Add a serializer for LayersId. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D94466
2020-10-22 19:16:19 +00:00
Ryan VanderMeulen 27b1fa7259 Bug 1672563 - Update OTS to 8.1.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D94401
2020-10-22 17:28:27 +00:00
Lee Salzman 61733d80ca Bug 1672670 - move SWGL texture functions into texture.h. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D94434
2020-10-22 13:39:50 +00:00
Razvan Maries ac9d6200a5 Bug 1620096 - Disabled 709477-1.html on Linux and Android. r=kats DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D93877
2020-10-22 11:49:49 +00:00
Razvan Maries 90372fb9cf Backed out changeset cef722eb6583 (bug 1672309) for Windows 2012 debug BR bustages. CLOSED TREE 2020-10-22 09:01:29 +03:00
Lee Salzman 5b66b078c2 Bug 1671071 - support HDR formats in SWGL. r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D94304
2020-10-22 03:59:17 +00:00
Mihai Alexandru Michis 74d0ddf28a Backed out 3 changesets (Bug 1669588) for causing mochitest failures in test_group_zoomToFocusedInput.html
CLOSED TREE

Backed out changeset 38f373bf1d36
Backed out changeset f21fc6d5768f
Backed out changeset c429989882c2
2020-10-22 06:44:43 +03:00
Kartikaya Gupta d845262402 Bug 1672237 - Update fission helpers to use subtestFailed. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94169
2020-10-22 00:47:48 +00:00
Kartikaya Gupta 49b46719f7 Bug 1672237 - Add a subtestDone to the fission helper. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94168
2020-10-22 00:47:45 +00:00
Kartikaya Gupta 51e5032b63 Bug 1672237 - Ensure cleanup is done regardless of success or failure. r=botond
Unrelated robustification that I saw while writing the previous patch.

Differential Revision: https://phabricator.services.mozilla.com/D94167
2020-10-22 00:47:43 +00:00
Kartikaya Gupta 484fa67dde Bug 1672237 - Replace then(subtestDone) with then(subtestDone, subtestFailed). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94166
2020-10-22 00:47:35 +00:00
Kartikaya Gupta 02388db31c Bug 1672237 - Replace finally(subtestDone) with then(subtestDone, subtestFailed). r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94165
2020-10-22 00:47:32 +00:00
Kartikaya Gupta 3f50e49097 Bug 1672237 - Add a subtestFailed function, similar to SimpleTest.finishWithFailure. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D94164
2020-10-22 00:47:24 +00:00
Kartikaya Gupta 50abea7f2a Bug 1672237 - Update most remaining APZ mochitests to use SimpleTest.finishWithFailure. r=botond
A few tests do the SimpleTest.waitForExplicitFinish/SimpleTest.finish dance
without a promise/async chain. This updates those tests to follow a more
async style and to send failures through SimpleTest.finishWithFailure.

Note that the conversion to async is done "locally" by wrapping callback-taking
helper function calls in promises. In some cases it probably makes sense to
modify the helper function itself to return a promise, but that's out of scope
for this bug, so I'm punting those kinds of changes to a follow-up bug.

Differential Revision: https://phabricator.services.mozilla.com/D94163
2020-10-22 00:47:22 +00:00
Kartikaya Gupta 2d9f6ffc7e Bug 1672237 - Use SimpleTest.finishWithFailure in various APZ mochitests. r=botond
This updates APZ mochitests that are using .then(SimpleTest.finish) or
.finally(SimpleTest.finish) to instead pass the rejection/exception case
to SimpleTest.finishWithFailure.

Differential Revision: https://phabricator.services.mozilla.com/D94162
2020-10-22 00:47:20 +00:00