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

37165 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta 7aa4fa01c1 Bug 1627012 - Add a mochitest. r=botond
Depends on D76815

Differential Revision: https://phabricator.services.mozilla.com/D76816
2020-05-27 22:11:20 +00:00
Kartikaya Gupta e6e5e3357e Bug 1627012 - Move promiseOneEvent to apz_test_utils.js and generalize it slightly. r=botond
This is a useful function for non-fission tests too.

Depends on D76814

Differential Revision: https://phabricator.services.mozilla.com/D76815
2020-05-28 01:55:48 +00:00
Kartikaya Gupta 1a1d27995a Bug 1627012 - Make pinchZoomInWithTouch an async function. r=botond
This is specifically needed because the new test I'm adding uses both
pinchZoomInWithTouch and forceLayerTreeToCompositor, and it seems hard/impossible
to make that work unless both are async functions or both are non-async generator
functions. And in general I think we want to move away from the generator-style
tests and towards async-style tests as they are cleaner and more flexible. So
this migrates helper_basic_zoom along with turning pinchZoomInWithTouch into
an async function.

Depends on D76813

Differential Revision: https://phabricator.services.mozilla.com/D76814
2020-05-27 21:59:59 +00:00
Kartikaya Gupta 5569a955f3 Bug 1627012 - Extract a couple of helper methods to make pinch-zooming easier in tests. r=botond
Depends on D76812

Differential Revision: https://phabricator.services.mozilla.com/D76813
2020-05-28 01:53:21 +00:00
Kartikaya Gupta f6138147f4 Bug 1627012 - Update the APZC scroll offset to the main thread's visual scroll offset for new APZCs. r=botond
This is the main fix for the bug. When APZ is getting metrics from the main
thread "for the first time" it should accept the visual scroll offset in the
main thread metrics. Normally one would expect the isFirstPaint flag to be
set on this call to NotifyLayersUpdated, but that seems to only ever be set
on the very first paint of a presShell. In particular it is not set after a
tabswitch because the brower's async tab switching mechanism means that the
layer tree is already cached in the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D76812
2020-05-28 01:56:43 +00:00
Kartikaya Gupta 8183fac5b1 Bug 1627012 - Ensure NotifyLayersUpdated doesn't get called with bogus scrollable rects. r=botond
SetScrollableFrameMetrics uses a bogus scrollable rect (-1, -1, -1, -1) if none
is provided. With the next patch, we start using this bogus rect for clamping
the scroll offset on some calls to NotifyLayersUpdated, and causes the gtest
to fail. If we provide some sane rect it all works fine.

Depends on D76810

Differential Revision: https://phabricator.services.mozilla.com/D76811
2020-05-27 21:28:17 +00:00
Kartikaya Gupta 1aa4aa53ad Bug 1627012 - Add/improve logging around visual scroll offset. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D76810
2020-05-28 01:55:52 +00:00
Kartikaya Gupta b0ee5dd871 Bug 1641246 - Remove nsDisplayResolution. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D77111
2020-05-27 22:17:09 +00:00
Stephen A Pohl fbcafaf7ae Bug 1543813: Minor refactor of macOS color picker. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71043
2020-05-19 17:27:42 +00:00
Razvan Maries 749be00108 Backed out 2 changesets (bug 1543813) for assertion failures. CLOSED TREE
Backed out changeset 868982681ab3 (bug 1543813)
Backed out changeset c9b75701fcee (bug 1543813)
2020-05-28 03:17:13 +03:00
Stephen A Pohl bb9d5ca840 Bug 1543813: Minor refactor of macOS color picker. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D71043
2020-05-19 17:27:42 +00:00
Bert Peers e80c22f3c4 Bug 1623003 - investigate begin_frame r=gw
Adding profile_scopes.

Differential Revision: https://phabricator.services.mozilla.com/D77113
2020-05-27 20:37:05 +00:00
thomasmo 76400f97fe Bug 1637410 - Update OpenVR to 1.11.11 r=kip,daoshengmu
This change updates mozilla-central's copy of the files for the OpenVR lib built into xul.dll from
  https://github.com/ValveSoftware/openvr
from version 1.0.17 to 1.11.11.

Differential Revision: https://phabricator.services.mozilla.com/D74965
2020-05-27 21:16:57 +00:00
Erik Nordin b077117ab0 Bug 1637437 - Recompute backdrop-filter only when WebRender changes r=jrmuizel
- Add a gfxVarReceiver for nsCSSProps.
  - Recompute backdrop-filter state when notifying receivers for WebRender.
  - Remove NS_NewRunableFunction calls when we know we're on main thread.
  - Add assertion that recompute enabled state is called from main thread.

Differential Revision: https://phabricator.services.mozilla.com/D74975
2020-05-27 19:53:05 +00:00
Jamie Nicol 7aabe03a28 Bug 1635406 - Snap reference frame transforms if animated or zooms. r=aosmond
Bug 1620014 attempted to fix an issue where an animated visual
viewport offset (eg due to scrolling while being zoomed in) was
causing the fractional offset of a descendant scroll frame's content
transform to change, causing too much picture cache invalidation.

It did so by snapping the coordinate-system-relative offset when using
it to calculate the content_transform. This value of course includes
the animated visual viewport offset (as the axis-aligned zoom
transform cannot reset the coordinate system). However, it also
includes non-animated offsets, which were now being incorrectly
snapped, causing blurry/clipped text.

This change reverts that original fix. And instead, it snaps the
source_transform of the reference frame itself when it is sampled,
rather than the accumulated coordinate-system-relative scale_offset of
the scroll frame. Additionally, it only snaps the offset if it is an
animation (including zoom), and static offsets are left unsnapped.

Differential Revision: https://phabricator.services.mozilla.com/D76298
2020-05-27 13:45:08 +00:00
Emilio Cobos Álvarez 54fd961a29 Bug 1641245 - Make string comparators not virtual. r=froydnj,necko-reviewers,geckoview-reviewers,jgilbert,agi,valentin
There's no use case for stateful comparators, so they can be just plain
function pointers.

This is used in some hot places like CSS selector matching.

Differential Revision: https://phabricator.services.mozilla.com/D77084
2020-05-27 18:11:12 +00:00
Miko Mynttinen 6013e7cd95 Bug 1640457 - Discard pending WR display items if the Gecko item will be pushed as an image r=jrmuizel
If |nsDisplayItem::CreateWebRenderCommands()| returns false, the items that have been pushed to |DisplayListBuilder::pending_chunk| need to be cleared, because the item will be pushed as an image instead. This happens, for example, when nsDisplayText encounters unsupported features.

Differential Revision: https://phabricator.services.mozilla.com/D77095
2020-05-27 16:45:08 +00:00
Dzmitry Malyshau abaaa872a5 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-27 16:49:03 +00:00
Lee Salzman a3cd8b98e4 Bug 1640401 - pass in IDWriteFont for all UnscaledFontDWrites that are not data fonts. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76943
2020-05-26 22:30:17 +00:00
Lee Salzman 1db8c9ea1b Bug 1640120 - select proper local-space target size for bitmap fonts in WR FT backend. r=aosmond
Differential Revision: https://phabricator.services.mozilla.com/D76995
2020-05-27 14:28:22 +00:00
Daniel Lu 6160d3466b Bug 1541511 - Removed unused Image::sub_rect field. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D75109
2020-05-14 18:28:01 +00:00
Hiroyuki Ikezoe cb41bbc2c4 Bug 1640525 - Avoid looking up AnimatedValue twice. r=boris
We've already tried to looking up the existing AnimatedValue so that when we
want to replace the old one in the hash table we can reuse the existing one.
With this manner, we no longer need to copy TransformData if we don't need to
do.

Differential Revision: https://phabricator.services.mozilla.com/D76633
2020-05-26 21:56:20 +00:00
Bogdan Tara 6ed3c943f7 Backed out changeset f4ed4d3e0e9e (bug 1634425) for hazard failure on WebGPUParent.cpp CLOSED TREE 2020-05-27 01:12:40 +03:00
Hiroyuki Ikezoe 4331b35ab5 Bug 1640524 - Drop a variant of CompositorAnimationStorage::SetAnimatedValue. r=boris
It's not used at all.

Depends on D76631

Differential Revision: https://phabricator.services.mozilla.com/D76632
2020-05-26 21:33:25 +00:00
Hiroyuki Ikezoe 076ee01bcb Bug 1640524 - Move nsTArray for non animating values. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D76631
2020-05-26 19:05:59 +00:00
Dzmitry Malyshau 67c0d914f3 Bug 1634425 - Integrate WebGPU API tracing r=jgilbert
This is the logic of tracing the WebGPU API calls at the level of wgpu-core,
serialized into a folder of choosing on the user drive. Traces are extremely portable,
they can be shared (on BugZilla) and then replayed on the developer machine,
which can have a different architecture from the users machine.

The standalone player is introduced in `gfx/wgpu/player`, similar to WebRender's Wrench.

The output dir is controlled by "dom.webgpu.traceDir" pref. No tracing happens if it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D73333
2020-05-26 21:15:40 +00:00
Andrew Osmond 532a41fd80 Bug 1639574 - Disable color management for CSS due to issues with canvas. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76859
2020-05-26 21:20:18 +00:00
David Major c7ce07f2b5 Bug 1640983 - Fix a must-use error about mem::replace in renderer.rs r=gw
The `mem::replace` was added in b2abdbdb7b (l1.12)

and obsoleted in 504dfff094 (l6.86)

This patch restores the original assignment.

Differential Revision: https://phabricator.services.mozilla.com/D76885
2020-05-26 20:08:16 +00:00
Kartikaya Gupta 91befca134 Bug 1640387 - Only set HitResult::mTargetIsRoot for confirmed-root targets. r=snorp,botond
Differential Revision: https://phabricator.services.mozilla.com/D76594
2020-05-26 16:30:12 +00:00
Kartikaya Gupta e0ccbf2510 Bug 1640387 - Combine a few loose fields in APZCTreeManager into a HitTestResult. r=botond
Differential Revision: https://phabricator.services.mozilla.com/D76593
2020-05-25 17:22:46 +00:00
Nicolas Silva 9a64982c05 Bug 1640103 - Call clear_namespace on the blob image handler. r=gw
This should fix a memory usage regression from a9eaeeec41 which I suspect was caused by not clearing the blob's namespace anymore after destroying the api object.

Depends on D76489

Differential Revision: https://phabricator.services.mozilla.com/D76490
2020-05-25 20:58:03 +00:00
Jonathan Kew 58d58635f7 Bug 1640119 - Pass shared-memory blocks for the font list as part of SetXPCOMProcessAttributes. r=jwatt
Differential Revision: https://phabricator.services.mozilla.com/D76507
2020-05-26 09:30:17 +00:00
cbrewster 09a9e27d6e Bug 1639729: Propagate surface device pixel scale to child surfaces r=Bert
Differential Revision: https://phabricator.services.mozilla.com/D76576
2020-05-25 23:12:02 +00:00
Gabriel D'Alimonte b883a30ead Bug 1625693 - Fix mouse movement position tracking in examples. r=kats
[import_pr] From https://github.com/servo/webrender/pull/3961

Differential Revision: https://phabricator.services.mozilla.com/D76716
2020-05-25 15:38:34 +00:00
sotaro 1e3d052869 Bug 1632357 - Use compositor window only when it is necessary r=nical
With current gecko, there are cases that compositor window is used even when it is not necessary. For example, fallback from DirectComposite with WebRender and fallback from double buffering with Compositor. With some gpu drivers, the fallbacks with compositor window causes rendering problem.

Differential Revision: https://phabricator.services.mozilla.com/D76470
2020-05-25 11:57:05 +00:00
Nicolas Silva bdabdf112f Bug 1635016 - Remove the rest of the SetTransactionLogging glue. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D74866
2020-05-18 12:11:33 +00:00
Emilio Cobos Álvarez 89958b377a Bug 1640605 - Remove IsInAnonymousSubtree / IsRootOfAnonymousSubtree. r=edgar
In favor of the NativeAnonymous versions which they forward to.

Done automatically with:

  rg -l 'IsInAnonymousSubtree' | xargs sed -i 's/IsInAnonymousSubtree/IsInNativeAnonymousSubtree/g'

And removing the function definitions afterwards.

Differential Revision: https://phabricator.services.mozilla.com/D76681
2020-05-25 11:43:51 +00:00
Sylvestre Ledru f69840fd80 Bug 1617369 - Reformat recent rust changes with rustfmt r=webdriver-reviewers,whimboo
# ignore-this-changeset

Depends on D76451

Differential Revision: https://phabricator.services.mozilla.com/D76663
2020-05-25 09:07:45 +00:00
Sylvestre Ledru 615c83d723 Bug 1519636 - Reformat recent changes to the Google coding style r=andi
# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D76451
2020-05-25 07:42:38 +00:00
Lee Salzman 7db0844f3b Bug 1640401 - only enable WR font sanitization in nightly. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76628
2020-05-24 17:10:14 +00:00
Timothy Nikkel cfedff2d38 Bug 1636273. Fix calculation of scroll position in AsyncPanZoomController::HandleDragEvent. r=kats,botond
The scroll position and scrollable rect are inside the zoom boundary so we need to use the composisted size inside the zoom boundary as well.

Differential Revision: https://phabricator.services.mozilla.com/D76089
2020-05-21 02:41:41 +00:00
Lee Salzman f99ed95040 Bug 1640401 - add crashtest for font sanitization. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76612
2020-05-23 23:55:16 +00:00
Lee Salzman 163f753f85 Bug 1640401 - allow unknown font types to sanitize for WR. r=jrmuizel
WR may be sanitizing more fonts than just downloadable webfonts (any for
which we couldn't generate a descriptor), so we need to be more permissive
about what font types we allow that the content process would normally skip.

Differential Revision: https://phabricator.services.mozilla.com/D76608
2020-05-23 23:56:41 +00:00
Lee Salzman b64de7f2d6 Bug 1639563 - add some warnings when fonts fail to sanitize. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76604
2020-05-23 17:47:32 +00:00
Lee Salzman 9384fc8f0a Bug 1639563 - make WROTSAlloc::Grow check capacity instead of length. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D76582
2020-05-23 17:47:32 +00:00
Jon Bauman 83307586cc Bug 1639409 - AVIF (AV1 Image File Format): decode with dav1d. r=aosmond
Also, add `clang-format off` directives to files which are ignored by
.clang-format-ignore so that the editor isn't trying to reformat them

Differential Revision: https://phabricator.services.mozilla.com/D76217
2020-05-22 19:00:17 +00:00
Greg V 22c3a0e8d8 Bug 1620076 - Partial compositing (damage) with EGL_EXT_buffer_age in WebRender r=jgilbert
EGL with buffer-age requires the application to keep the front buffer
fully consistent. This means we have to draw the previous frame's
damage as well. (But we don't need to include it in the hint we're
sending to the system compositor via SwapBuffersWithDamage.)

Differential Revision: https://phabricator.services.mozilla.com/D61062
2020-05-22 18:15:13 +00:00
sotaro 2bb3ca363d Bug 1636868 - Add RenderTextureHostWrapper for GPUVideoTextureHost r=jrmuizel
By using RenderTextureHostWrapper, we could reduce re-creation of RenderDXGITextureHostOGL and RenderDXGIYCbCrTextureHostOGL.

Differential Revision: https://phabricator.services.mozilla.com/D74838
2020-05-22 19:42:38 +00:00
Jonathan Kew 6cb63be4a2 Bug 1640293 - Remove EARLY_BETA_OR_EARLIER conditional, so that word-cache expiration is enabled for all builds. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D76553
2020-05-22 21:52:27 +00:00
Bob Owen bf951b6e5a Bug 1637339: Only validate constrained values when element read succeeded. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D75570
2020-05-22 18:22:07 +00:00