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

44946 Коммитов

Автор SHA1 Сообщение Дата
Andrew Osmond 80c7c674a6 Bug 691187 - Prune zero-length segments for canvas strokes. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D179462
2023-06-02 19:06:15 +00:00
Cristian Tuns ec6e03eda9 Backed out changeset 50707b02bc59 (bug 691187) for causing mochitest failures in test_bug1567544.html CLOSED TREE 2023-06-02 09:40:34 -04:00
Andrew Osmond 9975cde84f Bug 691187 - Prune zero-length segments for canvas strokes. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D179462
2023-06-02 12:48:31 +00:00
Jonathan Kew f52636084c Bug 1836024 - Don't mask Devanagari DANDA characters from the font cmap when shaping support is absent, as they may be used by other scripts. r=emilio
Also a couple more Arabic-block characters that were not handled in bug 1834316, per comment 3.

Differential Revision: https://phabricator.services.mozilla.com/D179670
2023-06-01 19:23:01 +00:00
Mike Hommey 5827731854 Bug 1835978 - Update cairo version in gfx/cairo/README. r=gfx-reviewers,lsalzman
The last update was in bug 739096.

Differential Revision: https://phabricator.services.mozilla.com/D179516
2023-05-31 19:55:00 +00:00
sotaro 8db3e693c6 Bug 1835980 - Remove TextureHost::IsWrappingBufferTextureHost() r=gfx-reviewers,lsalzman
TextureHost::AsBufferTextureHost() already exists. The IsWrappingBufferTextureHost() is redundant.

It is preparation for Bug 1834039.

Differential Revision: https://phabricator.services.mozilla.com/D179519
2023-05-31 17:05:52 +00:00
sotaro 111037957d Bug 1835984 - Add Add KnowsCompositor::SupportsD3D11NV12() r=gfx-reviewers,lsalzman
DeviceManagerDx::Get()->CanUseNV12() needs D3D11Device in current process. The SupportsD3D11NV12() could be used without D3D11Device in current process.

It is preparation for Bug 1834039.

Differential Revision: https://phabricator.services.mozilla.com/D179532
2023-05-31 17:05:16 +00:00
Iulian Moraru 3cfea4753c Backed out changeset 9fce1abd1c50 (bug 1833244) for causing build bustages on nsDeviceContextAndroid.h. CLOSED TREE 2023-05-31 16:31:53 +03:00
Jonathan Watt d4e8510ca6 Bug 1833244 p1. Create infrastructure to pass page dimensions to PrintTarget::BeginPage. r=dholbert
OS print drivers/devices know nothing about page dimensions unless we tell
them. Previously, the physical page dimensions (including orientation) have
always been the same, so communicating their dimensions once at the start of
a print has been enough. In preparation for supporting different "physical"
page dimensions (in the immediate future only different page orientations) when
we save to PDF, we need to have the infrastructure to pass dimensions through
on a page-by-page basis. This patch adds that.

None of the PrintTarget subclasses do anything with this extra information yet,
but in a follow-up patch PrintTargetPDF will use this information to create
PDFs with mixed page orientations.

Depends on D179395

Differential Revision: https://phabricator.services.mozilla.com/D179423
2023-05-31 13:02:26 +00:00
Jonathan Kew 6acb880903 Bug 1835271 - Treat the collection of Noto fonts from the Supplemental directory as standard on macOS, as we activate them all at startup. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D179201
2023-05-31 09:47:40 +00:00
Ryan VanderMeulen d10b5739d2 Bug 1835833 - Update OTS to 9.1.0. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D179464
2023-05-30 16:56:48 +00:00
Ray Kraesig 06d7f9c03e Bug 1834612 - [1/1] Restrict DComp-disabling mitigation to Windows 10 r=ahale,gfx-reviewers
Bug 1704954 disabled DirectComposition for users with NVIDIA graphics
hardware and mixed monitor refresh rates on Windows 10 and 11, as a
mitigation for bug 1638709. However, that bug is almost -- perhaps
entirely -- unknown on Windows 11 (q.v. for details), and the fallback
path it uses has been shown to cause issues there (bug 1763981).

Restrict the mitigation to only occur on Windows 10, where bug 1638709
is exhibited, but where no issues with the fallback path are known.

This also effectively reverts bug 1816001, which it obviates.

Differential Revision: https://phabricator.services.mozilla.com/D178848
2023-05-30 16:22:43 +00:00
sotaro 15ad7260c1 Bug 1835814 - Move GetFormat() and GetYUVColorSpace() to RenderTextureHost r=gfx-reviewers,lsalzman
By moving GetFormat() and GetYUVColorSpace() to RenderTextureHost, we could reduce cast to RenderTextureHostSWGL.

It is preparation for Bug 1834039.

Differential Revision: https://phabricator.services.mozilla.com/D179435
2023-05-30 14:43:22 +00:00
Gregory Pappas 3e90a3f5db Bug 1754851 - Remove Compositor::RecordFrame r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D179304
2023-05-29 18:37:27 +00:00
Jeff Muizelaar ae8629b27d Bug 1833782. Enable CXX11 atomics on clang-cl. r=mstange
The old Win32 specific atomics support was accidentally removed in bug 739096.
However, we can just use the existing CXX11 atomic support because we build with
clang-cl.

Differential Revision: https://phabricator.services.mozilla.com/D179267
2023-05-26 19:42:16 +00:00
Nika Layzell 2f2588cf4f Bug 1828389 - Ensure IPC channel is closed with error after KillHard, r=ipc-reviewers,mccr8
This patch changes KillHard() such that the IPC channel is immediately
shut down with an error after a KillHard() is performed. This is done by
fixing the previously-broken CLOSE_CHANNEL_WITH_ERROR support in
ShutDownProcess, and calling that method after KillHard().

This ensures that after the process has been killed, no further messages
will be delivered and processed, even if they were sent before the
process was killed.

In addition, the assertions and KillHard calls which are disabled for
fuzzing were changed to also shut down the channel, making fuzzing IPC
errors cause the connection to be terminated like it is in production
for these actors.

This change does not impact actors which ignore processing errors.

Differential Revision: https://phabricator.services.mozilla.com/D178383
2023-05-26 17:44:57 +00:00
Botond Ballo 3971208b5a Bug 1833950 - Add gtest. r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D178612
2023-05-26 10:59:04 +00:00
Emilio Cobos Álvarez 4252cb490e Bug 1833950 - Handle duplicate pan-end on fling state too. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D178483
2023-05-26 10:59:04 +00:00
Jeff Muizelaar 5a6b419ed6 Bug 1833030. Don't use native_srgb on Windows. r=jgilbert
There was confusion about the purpose of this pref. Just hard code
it for now.

Differential Revision: https://phabricator.services.mozilla.com/D178355
2023-05-26 01:35:33 +00:00
Erich Gubler a435654157 Bug 1832451 - Vendor wgpu changes. r=webgpu-reviewers,jgilbert
Depends on D177827

Differential Revision: https://phabricator.services.mozilla.com/D177829
2023-05-25 18:01:03 +00:00
Erich Gubler b6e69edbb6 Bug 1832451 - Update wgpu to revision f71a1bc736fde37509262ca03e91d8f56a13aeb5. r=webgpu-reviewers,nical
Differential Revision: https://phabricator.services.mozilla.com/D177826
2023-05-25 18:01:03 +00:00
Jonathan Kew 2abb72c867 Bug 1835110 - Avoid potential deadlock in FT2FontEntry::HasFontTable. r=gfx-reviewers,bradwerth
Checking logcat from test runs at
https://treeherder.mozilla.org/jobs?repo=try&revision=fc75475d3cd5dcacbbc74b0c9a58a89ae6c97119
we can see that the "potential deadlock" warning no longer appears.

Differential Revision: https://phabricator.services.mozilla.com/D179118
2023-05-25 17:42:27 +00:00
Jason Kratzer 81ff1f5f49 Bug 1832604 - Disable AVX512 instructions on coverage builds. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D179098
2023-05-25 16:32:25 +00:00
sotaro f9510e15d5 Bug 1834948 - Remove PendingFrameInfo::mFrameNeedsRender r=gfx-reviewers,lsalzman
PendingFrameInfo::mFrameNeedsRender is no longer needed. It was originally added for document splitting by Bug 1441308 and modified by Bug 1570869.

Differential Revision: https://phabricator.services.mozilla.com/D179032
2023-05-25 08:57:27 +00:00
Mike Hommey 2c10cb30c0 Bug 1834917 - Use mac unscaled font code on iOS. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D179001
2023-05-25 05:21:49 +00:00
Mike Hommey f8a28f990a Bug 1834678 - Change the llvm-config trick for cross-compilation. r=gfx-reviewers,gw
Contrary to ld64, lld doesn't ignore libraries it's given on the command
line, and -lLLVM-14 ends up as a link error when using lld.

So instead of relying on the flags llvm-config outputs to be kind of
ignored, we replace them at the source by wrapping llvm-config itself.

Differential Revision: https://phabricator.services.mozilla.com/D178900
2023-05-25 01:49:06 +00:00
Mike Hommey 3f6669c88c Bug 1834678 - Upgrade meson to 1.1.0. r=gfx-reviewers,gw
The old version that is currently used doesn't support lld for mac, and
tries to pass it flags for BFD ld (e.g. --as-needed).

For some reason meson checks fail because of some CFLAGS not being used
during the checks being reported as an error, so we make those errors
quiet.

Differential Revision: https://phabricator.services.mozilla.com/D178899
2023-05-25 01:49:06 +00:00
Jonathan Kew ed0a7da8da Bug 1834316 - Don't mask Arabic comma/semicolon/question-mark from the font's cmap when 'arab' script support is absent, because they may be used with other scripts such as N'Ko. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178693
2023-05-23 14:33:22 +00:00
Glenn Watson 42ef0ea1c2 Bug 1830588 - Fix clip on fractional composite prims r=gfx-reviewers,lsalzman
Also add a test and re-enable the new clip-mask code paths.

Differential Revision: https://phabricator.services.mozilla.com/D178614
2023-05-22 21:48:13 +00:00
stransky a03bac885c Bug 1833497 [Linux] Get FEATURE_HARDWARE_VIDEO_DECODING status even if it's force enabled by user pref r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D178301
2023-05-22 18:53:48 +00:00
sotaro 6f887f97eb Bug 1833696 - Add indication of VIDEO_OVERLAY if disabled by pref(gfx.webrender.dcomp-video-overlay-win= false) r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D178608
2023-05-22 06:05:05 +00:00
Jonathan Kew 8109de8531 Bug 1253840 - patch 2 - When justifying, the full advance of any trimmable end-of-line whitespace needs to be hung into the margin. r=emilio
Depends on D178210

Differential Revision: https://phabricator.services.mozilla.com/D178211
2023-05-21 13:17:42 +00:00
Mark Banner 2a53076d43 Bug 1826063 - Automatic fixes for enabling Prettier on production xhtml and html files. r=mossop,webdriver-reviewers,webcompat-reviewers,geckoview-reviewers,extension-reviewers,settings-reviewers,application-update-reviewers,credential-management-reviewers,fxview-reviewers,sgalich,nalexander,devtools-reviewers,sclements,denschub,robwu,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177938
2023-05-20 12:26:56 +00:00
Mark Banner 130a655906 Bug 1826062 - Automatic fixes for upgrading Prettier to 2.8.8. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,calu
Differential Revision: https://phabricator.services.mozilla.com/D177027
2023-05-20 12:26:53 +00:00
Mark Banner 8219a5c503 Bug 1826062 - Automatic fixes for Prettier 2.0.5 upgrade. r=mossop,perftest-reviewers,webcompat-reviewers,geckoview-reviewers,denschub,devtools-reviewers,sparky,owlish
Differential Revision: https://phabricator.services.mozilla.com/D177025
2023-05-20 12:26:49 +00:00
Stanca Serban 0d97343733 Backed out 2 changesets (bug 1807049, bug 1828389) for mozilla::ThreadEventTarget::Dispatch xpcshell related crashes. CLOSED TREE
Backed out changeset bbd8b8bbf677 (bug 1828389)
Backed out changeset 03bd5f26f9af (bug 1807049)
2023-05-20 07:38:09 +03:00
Stanca Serban 403e698e38 Backed out 4 changesets (bug 1253840) for causing multiple failures in nsLineLayout.cpp. CLOSED TREE
Backed out changeset 1a47c4ddf44c (bug 1253840)
Backed out changeset 816a9266d111 (bug 1253840)
Backed out changeset 7ce24f83240a (bug 1253840)
Backed out changeset cf6eff426d61 (bug 1253840)
2023-05-20 00:49:29 +03:00
Nika Layzell c3ca248eeb Bug 1828389 - Ensure IPC channel is closed with error after KillHard, r=ipc-reviewers,mccr8
This patch changes KillHard() such that the IPC channel is immediately
shut down with an error after a KillHard() is performed. This is done by
fixing the previously-broken CLOSE_CHANNEL_WITH_ERROR support in
ShutDownProcess, and calling that method after KillHard().

This ensures that after the process has been killed, no further messages
will be delivered and processed, even if they were sent before the
process was killed.

In addition, the assertions and KillHard calls which are disabled for
fuzzing were changed to also shut down the channel, making fuzzing IPC
errors cause the connection to be terminated like it is in production
for these actors.

This change does not impact actors which ignore processing errors.

Differential Revision: https://phabricator.services.mozilla.com/D178383
2023-05-19 19:21:08 +00:00
Jonathan Kew 8b24f65b6e Bug 1253840 - patch 2 - When justifying, the full advance of any trimmable end-of-line whitespace needs to be hung into the margin. r=emilio
Depends on D178210

Differential Revision: https://phabricator.services.mozilla.com/D178211
2023-05-19 16:44:10 +00:00
Iulian Moraru f5be562cbd Backed out 2 changesets (bug 1812982) for causing bc crash in RenderTextureHostSWGL.cpp.
Backed out changeset c53591077218 (bug 1812982)
Backed out changeset 9c11387675b1 (bug 1812982)
2023-05-18 21:54:40 +03:00
stransky 80210220ec Bug 1812982 [SW WR] Assert if we clear locked planes r=lsalzman
Depends on D173946

Differential Revision: https://phabricator.services.mozilla.com/D174467
2023-05-18 14:39:13 +00:00
stransky 7b33c92417 Bug 1812982 [SW WR] Make RenderTextureHostSWGL::UpdatePlanes() fail if plane count is zero r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D173946
2023-05-18 14:39:13 +00:00
Robert Longson a1b7878e33 Bug 1833616 - Use RAII to manage Push/Pop of gfxContext Clip r=emilio,gfx-reviewers,lsalzman
Take care to restore only the parts of the gfxContext that we need to because saving and restoring the complete gfxContext is expensive.

Differential Revision: https://phabricator.services.mozilla.com/D178304
2023-05-17 15:08:28 +00:00
Jonathan Kew 4fca70d35e Bug 1832194 - Update harfbuzz to 7.3.0 r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D177574
2023-05-16 14:40:39 +00:00
Hiroyuki Ikezoe 04ba6da88c Bug 1817330 - Inform a reasonable APZHandledResult to GeckoView even if the APZ's result is nsEventStatus_eConsumeNoDefault. r=botond,geckoview-reviewers,owlish
Note that for touch events there are two possibilities where
InputQueue::ReceiveInputEvent() returns nsEventStatus_eConsumeNoDefault, a) the
touch input block is in a state of fast fling or b) the touch input block is in
a state of internal slop.

In the case of b) the nsEventStatus_eConsumeNoDefault status will never be used
since
 1) In cases of delayed results we just use the APZHandledResult we don't refer
    the nsEventStatus at all [1]
 2) In cases of non-delayed results even if the initial touch-start event gets
    into slop, TouchBlockState::UpdateSlopState returns false [2], thus APZ
    immediately reports one of the other nsEventStatuses and any subsequent
    statuses will never be used [3]

In the case of a) nsEventStatus_eConsumeNoDefault means the event doesn't need
to be sent to content, it doesn't mean any APZC didn't scroll by the event.

Also note that there's an automated test exercising the scenario a). It was
flaky before (bug 1687842), but now it appears to be stable.

[1] https://searchfox.org/mozilla-central/rev/32c74afbb24dce4b5dd6b33be71197e615631d71/gfx/layers/apz/src/InputQueue.cpp#986
[2] https://searchfox.org/mozilla-central/rev/32c74afbb24dce4b5dd6b33be71197e615631d71/gfx/layers/apz/src/InputBlockState.cpp#774-784
[3] https://searchfox.org/mozilla-mobile/rev/9fd115db1da9958a32c2cb2943fef79c1a0cac4a/firefox-android/android-components/components/browser/engine-gecko/src/main/java/mozilla/components/browser/engine/gecko/NestedGeckoView.kt#85,122-132

Differential Revision: https://phabricator.services.mozilla.com/D177456
2023-05-15 23:21:54 +00:00
nicklas boman 5e31225558 Bug 1724649 - Followup to remove #include plstr.h r=necko-reviewers,xpcom-reviewers,valentin,nika
Differential Revision: https://phabricator.services.mozilla.com/D177690
2023-05-15 14:53:02 +00:00
Razvan Cojocaru bd32806ce4 Bug 1818721 - Add a mochitest. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D176696
2023-05-15 05:24:38 +00:00
Botond Ballo ac7516fd30 Bug 1818721 - Document what kind of coordinates hitTest() expects. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D177995
2023-05-15 05:24:38 +00:00
Botond Ballo f282556faa Bug 1818721 - Make promiseVerticalScrollbar[Touch]Drag() work on pinch-zoomed pages. r=hiro
Differential Revision: https://phabricator.services.mozilla.com/D177994
2023-05-15 05:24:37 +00:00
Botond Ballo d368cd9a57 Bug 1818721 - Add a targetIsWindow() helper. r=hiro
Depends on D177992

Differential Revision: https://phabricator.services.mozilla.com/D177993
2023-05-15 05:24:37 +00:00