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

44775 Коммитов

Автор SHA1 Сообщение Дата
Jonathan Kew 9c1b2512f5 Bug 1826629 - Implement CSS and rendering (but not copy/paste) support for the (non-standard) -webkit-text-security property. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D174951
2023-04-18 11:47:07 +00:00
Peter Van der Beken 635046af85 Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-04-18 07:07:05 +00:00
Cristian Tuns f65f34399a Backed out 2 changesets (bug 1753565) for causing bc failures in browser_proton_moreTools_panel.js CLOSED TREE
Backed out changeset 817b0cf1e4e0 (bug 1753565)
Backed out changeset 947534ff1319 (bug 1753565)
2023-04-18 02:03:20 -04:00
Dan Robertson fe35d53b73 Bug 1753565 - Disable prefers-reduced-motion for tests. r=botond
Disable the prefers-reduced-motion preference for mochitests and
web-platform-tests.

Differential Revision: https://phabricator.services.mozilla.com/D174956
2023-04-18 04:11:10 +00:00
Dan Robertson e4776501d3 Bug 1753565 - Disable smooth scrolls if prefers-reduced-motion. r=botond
If the user has the prefers-reduced-motion system setting enabled, do
not enable smooth scrolls.

Differential Revision: https://phabricator.services.mozilla.com/D172446
2023-04-18 04:11:10 +00:00
Botond Ballo 142568fe99 Bug 1816995 - Assert that prevSiblingIndex <= mContainingSubtreeLastIndex. r=dlrobertson
Depends on D175218

Differential Revision: https://phabricator.services.mozilla.com/D175219
2023-04-18 03:44:08 +00:00
Botond Ballo 76523ab880 Bug 1816995 - Reject transactions with malformed scroll data. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D175218
2023-04-18 03:44:07 +00:00
Botond Ballo e411a9db3a Bug 1816995 - Add a method for validating WebRenderScrollData. r=dlrobertson
WebRenderScrollData encodes a tree structure of layers stored in
a flat array. Objects originating from a less trusted source
(e.g. sent over IPC from a content process) need to be validated
to ensure they encode a proper tree structure.

Depends on D175216

Differential Revision: https://phabricator.services.mozilla.com/D175217
2023-04-18 03:44:07 +00:00
Botond Ballo 47c2d767cc Bug 1816995 - Fix a missing field initializer in the WebRenderScrollData default constructor. r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D175216
2023-04-18 03:44:07 +00:00
Glenn Watson 11dd2a2799 Bug 1827553 - Update fuzziness for gfx/tests/reftest/1696439-1.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175702
2023-04-18 02:29:16 +00:00
Glenn Watson 9c3ebe80a1 Bug 1828419 - Update fuzziness for gfx/tests/reftest/1761460.html r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175701
2023-04-18 02:29:16 +00:00
Bob Owen 85d921c123 Bug 1825169: Process off main thread deletions in DrawEventRecorderPrivate::AddStoredObject. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174952
2023-04-17 15:23:42 +00:00
Andi-Bogdan Postelnicu bf2bb59367 Bug 1277372 - Move away from "mozilla/TypeTraits.h". r=geckoview-reviewers,sergesanspaille,m_kato
std::is_pod has been deprecated in C++20, see https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2017/p0767r1.html.
This is equivalent with std::is_trivial_v && std::is_standard_layout.

Differential Revision: https://phabricator.services.mozilla.com/D174128
2023-04-17 13:50:11 +00:00
sotaro 03748fb03f Bug 1828043 - Remove assert of IsInCompositorThread() in WebRenderImageHost::~WebRenderImageHost() r=gfx-reviewers,lsalzman
bug 1827578 did not change how WebRenderImageHost worked. Assert was just added for checking. Then it should be OK to remove the assert.

Differential Revision: https://phabricator.services.mozilla.com/D175580
2023-04-17 07:36:53 +00:00
Glenn Watson 7cb499d1d9 Bug 1823578 - Add new clip-mask rendering path r=gfx-reviewers,ahale
This adds the new infrastructure for rendering masked primitives
and uses it for simple rectangle primitives. Follow up patches
will port other primitives to it (and transformed rectangles).

Instead of rendering an alpha mask and then applying that during
picture cache rendering of content, the underlying content is
drawn to an off-screen surface, and the mask is applied on
top of that via multiplicative blending.

This is particularly helpful for applying masks to dynamically
rendered pictures in future, as we can apply the mask over the
already rendered picture without allocating an extra surface.

Since the content and mask is rendered together to a surface,
we can take advantage of this in future by caching the result
in the texture cache, rather than a temporary render target.
This means we don't need to redraw clip masks for this content
each time the surrounding area is invalidated.

Since the clip-mask is rendered in to the off-screen surface,
it is cheaper and simpler to composite the content in to the
main scene, avoiding an extra texture fetch and some tricky
fragment shader logic to sample the correct part of the mask.

To reduce the number of off-screen pixels that get drawn, the
system supports splitting the content up in to a series of
segments. This can either be a 9-patch, for the simple and
common case of a single rounded clip, or a tile grid across
the primitive. The tile grid can make it much faster to apply
large image masks, where there are often large areas that we
can determine are not affected by the mask image.

Differential Revision: https://phabricator.services.mozilla.com/D173095
2023-04-17 04:04:17 +00:00
Lee Salzman e020bbfe7c Bug 1821512 - Replace Skia layer masking with clip shaders. r=jrmuizel
Upstream Skia removed support for applying a cover mask to a layer. The closest
we can do is apply a clip shader to the layer push/pop, which allows us to supply
the mask. This reduces our depence on experimental Skia features, and performance
seems acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D173325
2023-04-16 15:34:50 +00:00
Lee Salzman dc0ab2eed4 Bug 1821512 - Fix Skia usage for API changes. r=jrmuizel
This just tries to address fairly random changes in the Skia API and correct
our usage of it in Moz2D and some other places.

Differential Revision: https://phabricator.services.mozilla.com/D173324
2023-04-16 15:34:50 +00:00
Lee Salzman 7672d64e69 Bug 1821512 - Update Skia build scripts. r=jrmuizel
This transitions generate_mozbuild to python3, since the existing script was
bitrotted with python2.

The generated moz.build is also fixed up for the new Skia files.

Differential Revision: https://phabricator.services.mozilla.com/D173323
2023-04-16 15:34:50 +00:00
Lee Salzman 629f4dc473 Bug 1821512 - Update Skia source files to milestone 113. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174378
2023-04-16 15:34:41 +00:00
Natalia Csoregi 53631b0cfb Backed out 6 changesets (bug 1821512) for failures on browser_screenshots_test_full_page.js. CLOSED TREE
Backed out changeset a31f2795710e (bug 1821512)
Backed out changeset 3985c29a6490 (bug 1821512)
Backed out changeset 0d9814a43a4d (bug 1821512)
Backed out changeset e5570884e8e4 (bug 1821512)
Backed out changeset efc92c86fafd (bug 1821512)
Backed out changeset 3222f6498a44 (bug 1821512)
2023-04-16 11:30:32 +03:00
Lee Salzman 75dd72c6ba Bug 1821512 - Replace Skia layer masking with clip shaders. r=jrmuizel
Upstream Skia removed support for applying a cover mask to a layer. The closest
we can do is apply a clip shader to the layer push/pop, which allows us to supply
the mask. This reduces our depence on experimental Skia features, and performance
seems acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D173325
2023-04-16 04:00:00 +00:00
Lee Salzman 14b145251e Bug 1821512 - Fix Skia usage for API changes. r=jrmuizel
This just tries to address fairly random changes in the Skia API and correct
our usage of it in Moz2D and some other places.

Differential Revision: https://phabricator.services.mozilla.com/D173324
2023-04-16 04:00:00 +00:00
Lee Salzman faf9b2bb98 Bug 1821512 - Update Skia build scripts. r=jrmuizel
This transitions generate_mozbuild to python3, since the existing script was
bitrotted with python2.

The generated moz.build is also fixed up for the new Skia files.

Differential Revision: https://phabricator.services.mozilla.com/D173323
2023-04-16 03:59:59 +00:00
Lee Salzman 9cacdaacd4 Bug 1821512 - Update Skia source files to milestone 113. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174378
2023-04-16 03:59:51 +00:00
Jonathan Kew c1e5832d58 Bug 1827156 - Ensure custom fontconfig per-font settings such as fontfeatures are picked up. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175481
2023-04-15 11:19:46 +00:00
Jonathan Kew 7586a26cb6 Bug 1792157 - Ensure correct font-visibility for bundled fonts on Linux when they 'shadow' system-installed families. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175350
2023-04-14 21:48:18 +00:00
Narcis Beleuzu 0b4d880609 Backed out changeset 4f09c16c5434 (bug 1827156) for reftest failure on illformed-lang-tags-1.html . CLOSED TREE 2023-04-14 20:31:12 +03:00
Jonathan Kew c311ff43f1 Bug 1827156 - Ensure custom fontconfig per-font settings such as fontfeatures are picked up. r=gfx-reviewers,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175481
2023-04-14 16:33:08 +00:00
Jonathan Kew 6465086399 Bug 1827950 - Don't attempt to use font extents if we didn't get a valid 'head' table, or if it's not an sfnt resource. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D175391
2023-04-14 11:54:05 +00:00
Cosmin Sabou 60f701f2e5 Backed out 2 changesets (bug 1804140) for causing webdriver failures. CLOSED TREE
Backed out changeset 974558fd2790 (bug 1804140)
Backed out changeset dbe9d2f66fcc (bug 1804140)
2023-04-14 13:28:44 +03:00
Peter Van der Beken e0b98d564b Bug 1804140 - Enable SHIP by default on desktop, whether or not Fission is disabled. r=smaug,jgraham,webdriver-reviewers,whimboo
Differential Revision: https://phabricator.services.mozilla.com/D172278
2023-04-14 08:09:50 +00:00
sotaro df6f2ba3e7 Bug 1827578 - Async wait remote texture ready of offscreen canvas at WebRenderImageHost r=gfx-reviewers,lsalzman
It should be OK to wait remote texture ready of offscreen canvas at WebRenderImageHost. Offscreen canvas uses ImageBridge. And ImageBridge works asynchronously.

WebRenderImageHost::UseRemoteTexture() is split to WebRenderImageHost::PushPendingRemoteTexture() and WebRenderImageHost::UseRemoteTexture(). It is for handling RemoteTexture ready callback in WebRenderImageHost.

Differential Revision: https://phabricator.services.mozilla.com/D175226
2023-04-13 21:38:24 +00:00
Hiroyuki Ikezoe bc3644ad37 Bug 1826452 - Use non-rounded external scroll offsets behind a pref. r=botond,gw
Differential Revision: https://phabricator.services.mozilla.com/D175295
2023-04-13 09:27:48 +00:00
Timothy Nikkel a454d87007 Bug 1780191. Avoid making primitives smaller than one pixel active. r=nical
Webrender doesn't seem to handle them well. This of course will affect the balance of making things active, but hopefully this is a good trade off.

Differential Revision: https://phabricator.services.mozilla.com/D165726
2023-04-13 03:52:57 +00:00
Narcis Beleuzu 937fd1f910 Backed out changeset 4548910a12b0 (bug 1823578) as req by gwatson . CLOSED TREE 2023-04-12 22:54:32 +03:00
sotaro e57663dd91 Bug 1827593 - Remove WebRenderImageHost::mRemoteTextureHost r=gfx-reviewers,lsalzman
WebRenderImageHost::mRemoteTextureHost could be removed.

Differential Revision: https://phabricator.services.mozilla.com/D175233
2023-04-12 16:42:43 +00:00
Botond Ballo 53f658dbf5 Bug 1827291 - Remove unused NewNamedTimerCallback() function from APZThreadUtils.h. r=dlrobertson
Differential Revision: https://phabricator.services.mozilla.com/D175071
2023-04-12 16:33:46 +00:00
Travis Long c2a5c87b71 Bug 1827399 - Update Glean to v52.5.0 r=janerik,supply-chain-reviewers
Depends on D174979

Differential Revision: https://phabricator.services.mozilla.com/D175174
2023-04-12 15:55:45 +00:00
Botond Ballo cdf0684012 Bug 1776972 - Re-enable test_group_hittest-2.html in some configurations after the fix for bug 1737725. r=hiro
This patch reverts the test annotations to their state before D153415.

Differential Revision: https://phabricator.services.mozilla.com/D173999
2023-04-12 05:06:23 +00:00
Lee Salzman 8955312c13 Bug 1820903 - Clamp initial y inside clip rect. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174980
2023-04-12 03:51:13 +00:00
Glenn Watson afa7d91d20 Bug 1823578 - Add new clip-mask rendering path r=gfx-reviewers,ahale
This adds the new infrastructure for rendering masked primitives
and uses it for simple rectangle primitives. Follow up patches
will port other primitives to it (and transformed rectangles).

Instead of rendering an alpha mask and then applying that during
picture cache rendering of content, the underlying content is
drawn to an off-screen surface, and the mask is applied on
top of that via multiplicative blending.

This is particularly helpful for applying masks to dynamically
rendered pictures in future, as we can apply the mask over the
already rendered picture without allocating an extra surface.

Since the content and mask is rendered together to a surface,
we can take advantage of this in future by caching the result
in the texture cache, rather than a temporary render target.
This means we don't need to redraw clip masks for this content
each time the surrounding area is invalidated.

Since the clip-mask is rendered in to the off-screen surface,
it is cheaper and simpler to composite the content in to the
main scene, avoiding an extra texture fetch and some tricky
fragment shader logic to sample the correct part of the mask.

To reduce the number of off-screen pixels that get drawn, the
system supports splitting the content up in to a series of
segments. This can either be a 9-patch, for the simple and
common case of a single rounded clip, or a tile grid across
the primitive. The tile grid can make it much faster to apply
large image masks, where there are often large areas that we
can determine are not affected by the mask image.

Differential Revision: https://phabricator.services.mozilla.com/D173095
2023-04-12 00:03:19 +00:00
Robert Longson e47a68c1a6 Bug 1751025 - Opacity CSS property should apply to all children of text elements r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D174964
2023-04-11 22:08:24 +00:00
Cosmin Sabou 1bc387d5f5 Backed out changeset 1381726e6d29 (bug 1820903) for causing asan mochitest failures. CLOSED TREE 2023-04-11 21:08:39 +03:00
Lee Salzman 38aec6a561 Bug 1820903 - Clamp initial y inside clip rect. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174980
2023-04-11 15:44:46 +00:00
Iulian Moraru 6e2eff1bc5 Backed out 6 changesets (bug 1821512) for causing multiple failures. CLOSED TREE
Backed out changeset 97295a57babe (bug 1821512)
Backed out changeset 698104c7a5d1 (bug 1821512)
Backed out changeset 09aa18e47bf6 (bug 1821512)
Backed out changeset 20b46afb225f (bug 1821512)
Backed out changeset b531f604ea4c (bug 1821512)
Backed out changeset 0a7c0b0773d4 (bug 1821512)
2023-04-11 10:10:41 +03:00
Natalia Csoregi cd523b2514 Backed out changeset a846d1b82b98 (bug 1751025) for failures on opacity.svg. CLOSED TREE 2023-04-11 09:46:16 +03:00
Lee Salzman a726eee0e7 Bug 1821512 - Replace Skia layer masking with clip shaders. r=jrmuizel
Upstream Skia removed support for applying a cover mask to a layer. The closest
we can do is apply a clip shader to the layer push/pop, which allows us to supply
the mask. This reduces our depence on experimental Skia features, and performance
seems acceptable.

Differential Revision: https://phabricator.services.mozilla.com/D173325
2023-04-11 05:00:05 +00:00
Lee Salzman 5a40892628 Bug 1821512 - Fix Skia usage for API changes. r=jrmuizel
This just tries to address fairly random changes in the Skia API and correct
our usage of it in Moz2D and some other places.

Differential Revision: https://phabricator.services.mozilla.com/D173324
2023-04-11 05:00:05 +00:00
Lee Salzman e716f092b0 Bug 1821512 - Update Skia build scripts. r=jrmuizel
This transitions generate_mozbuild to python3, since the existing script was
bitrotted with python2.

The generated moz.build is also fixed up for the new Skia files.

Differential Revision: https://phabricator.services.mozilla.com/D173323
2023-04-11 05:00:04 +00:00
Lee Salzman 932d77fe8a Bug 1821512 - Update Skia source files to milestone 113. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D174378
2023-04-11 04:59:58 +00:00