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

711437 Коммитов

Автор SHA1 Сообщение Дата
Emilio Cobos Álvarez 31ea245f41 Bug 1643201 - Miscellaneous build fixes.
Depends on D78198

Differential Revision: https://phabricator.services.mozilla.com/D78199
2020-06-04 00:35:08 +00:00
Anthony Ramine b6b478f721 Bug 1643201 - servo: Return the root from the traversal.
Depends on D78196

Differential Revision: https://phabricator.services.mozilla.com/D78198
2020-06-04 00:35:00 +00:00
Martin Robinson 72e28ea0e8 Bug 1643201 - servo: layout_2020: Add support for transitions and animations.
Depends on D78195

Differential Revision: https://phabricator.services.mozilla.com/D78196
2020-06-04 00:34:53 +00:00
Martin Robinson 81d4be443e Bug 1643201 - servo: Implement `animation-fill-mode`.
Fixes #26460.

Depends on D78194

Differential Revision: https://phabricator.services.mozilla.com/D78195
2020-06-04 00:34:45 +00:00
Simon Sapin 376d2f283e Bug 1643201 - servo: `display: contents` computes to `block` on the root element.
Depends on D78193

Differential Revision: https://phabricator.services.mozilla.com/D78194
2020-06-04 00:34:42 +00:00
Martin Robinson fb83423da6 Bug 1643201 - servo: Remove AnimatedProperty.
This removes an extra layer of abstraction and allows Servo to share
more code with Gecko. In addition, we will need to handle raw
`AnimationValue` structs soon in order to fully implement "faster
reversing of interrupted transitions."

Depends on D78192

Differential Revision: https://phabricator.services.mozilla.com/D78193
2020-06-04 00:34:34 +00:00
Martin Robinson 67b71f76f3 Bug 1643201 - servo: Move most animation processing to script.
This is preparation for sharing this code with layout_2020 and
implementing selective off-the-main-thread animations.

We still look for nodes not in the flow tree in the layout thread.

Depends on D78191

Differential Revision: https://phabricator.services.mozilla.com/D78192
2020-06-04 00:34:31 +00:00
Martin Robinson bd72db8c67 Bug 1643201 - servo: layout_2020: Add initial support for getComputedStyle.
This implementation is more-or-less on par with the one from layout_2013
and in some cases better. There are still some cases where we don't
return the correct "resolved value," but this is enough to test
animations and transitions.

Depends on D78190

Differential Revision: https://phabricator.services.mozilla.com/D78191
2020-06-04 00:34:28 +00:00
Martin Robinson f095ec60bf Bug 1643201 - servo: Split animations and transitions into separate lists.
This change splits the list of animations and transitions, which are
almost always handled differently. It also renames
`ElementAnimationState` to `ElementAnimationSet` and establishes an
`AnimationState` for every transition and animation. This allows us to
stop continually reallocating lists every time a transition or animation
needs to be canceled.

Fixes #14419.

Depends on D78189

Differential Revision: https://phabricator.services.mozilla.com/D78190
2020-06-04 00:34:20 +00:00
Martin Robinson bf4fd750e3 Bug 1643201 - servo: Start having animations conform to the HTML spec.
This is a small step toward fixing #19242. The main idea is that the
clock for animations should advance as the event loop ticks. We
accomplish this by moving the clock from layout and naming it the
"animation timeline" which is the spec language. This should fix
flakiness with animations and transitions tests where a reflow could
move animations forward while script was running.

This change also starts to break out transition and animation events
into their own data structure, because it's quite likely that the next
step in fixing #19242 is to no longer send these events through a
channel.

Depends on D78188

Differential Revision: https://phabricator.services.mozilla.com/D78189
2020-06-04 00:34:18 +00:00
Martin Robinson f92e20c3cc Bug 1643201 - servo: Use a restyle for animation ticks.
This change corrects synchronization issues with animations, by
reworking the animation processing model to do a quick restyle and
incremental layout when ticking animations.

While this change adds overhead to animation ticks, the idea is that
this will be the fallback when synchronous behavior is required to
fulfill specification requirements. In the optimistic case, many
animations could be updated and applied off-the-main-thread and then
resynchronized when style information is queried by script.

Fixes #13865.

Depends on D78187

Differential Revision: https://phabricator.services.mozilla.com/D78188
2020-06-04 00:34:15 +00:00
Martin Robinson f879808ac6 Bug 1643201 - servo: Add support for animationend event.
This is triggered when an animation finishes. This is a high priority
because it allows us to start rooting nodes with animations in the
script thread.

This doesn't yet cause a lot of tests to pass because they rely on the
existence of `Document.getAnimations()` and the presence of
`animationstart` and animationiteration` events.

Depends on D78186

Differential Revision: https://phabricator.services.mozilla.com/D78187
2020-06-04 00:34:12 +00:00
Martin Robinson 05ab25fd1b Bug 1643201 - servo: Split animation cancellation from update_style_for_animation.
`update_style_for_animation` previously handled both canceling defunct
animations and also updating style to reflect current animation state.
This change splits those two concerns because we want to start handling
replaced or canceled animations and finished animations in two different
places.

This is a refactor, so ideally it shouldn't change any behavior.

Depends on D78185

Differential Revision: https://phabricator.services.mozilla.com/D78186
2020-06-04 00:34:09 +00:00
Martin Robinson 35c1ea7756 Bug 1643201 - servo: Restyle should reflect animations and transitions.
When doing a restyle, we should apply animations and transitions to the
new style so that it is reflected in `getComputedStyle()` and the new
style information properly cascades. This is the first part of properly
ticking animations and transitions.

This causes a couple new animations tests failures (along with many new
passes), but we currently don't have support for properly handling
animations after they have completed, so this isn't totally unexpected.

Depends on D78184

Differential Revision: https://phabricator.services.mozilla.com/D78185
2020-06-04 00:34:06 +00:00
Martin Robinson 504f6b82e4 Bug 1643201 - servo: Add ElementAnimationState and PossibleElementAnimationState.
This refactor is preparation for implementing a specification
compliant transitions and animations processing model.

These data structures hold all the animation information about a single
node. Since adding, updating, and modifying animations for a single node
are all interdependent, it makes sense to start encapsulating animation
data and functionality into a single data structure. This also opens up
the possibility for easier concurrency in the future by more easily
allowing per-node mutexes.

Differential Revision: https://phabricator.services.mozilla.com/D78184
2020-06-04 00:34:02 +00:00
cbrewster 89c953e36d Bug 1642072: Add a red line threshold to the render target GC to prevent memory exhaustion r=gw
Differential Revision: https://phabricator.services.mozilla.com/D78072
2020-06-03 22:53:16 +00:00
sotaro b12a00b03e Bug 1642834 - Add a comment to RenderCompositorANGLE::RequestFullRender() r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D77972
2020-06-03 22:32:10 +00:00
Masatoshi Kimura 3b8943eb50 Bug 1642844 - Remove mozJSComponentLoader::ReuseGlobal. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D78029
2020-06-03 22:53:29 +00:00
Mathieu Leplatre cc4e7f5130 Bug 1640136 - Load main dump when using preview r=Standard8
Differential Revision: https://phabricator.services.mozilla.com/D77786
2020-06-03 14:56:04 +00:00
Kagami Sascha Rosylight 45b185573f Bug 1632425 - Part 3: Triple click to select anchors r=masayuki
Differential Revision: https://phabricator.services.mozilla.com/D77683
2020-06-03 23:47:55 +00:00
Botond Ballo 117ae10a93 Bug 1642884 - Temporarily suppress data race in Axis::UpdateWithTouchAtDevicePoint. r=fix CLOSED TREE
Differential Revision: https://phabricator.services.mozilla.com/D78176
2020-06-03 23:51:28 +00:00
Emilio Cobos Álvarez 96b2b6d63a Bug 1643078 - Don't use lazy_static for media feature parsing. r=boris
This used to be needed when destructors in statics were not allowed, but
we can get rid of it nowadays.

Differential Revision: https://phabricator.services.mozilla.com/D78109
2020-06-03 22:43:49 +00:00
Cameron McCormack 495960fe47 Bug 1642895 - Remove unused nsFontFaceLoader::Init declaration. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D77997
2020-06-03 08:24:09 +00:00
Jonathan Watt cf7589cd57 Bug 1600623. Add telemetry probes for print dialog/preview opens/cancels and print target type. r=bobowen,mbalfanz
The probes collect counts for:

 - print preview open, and exit without print
 - print dialog opened from print preview, and cancelled
 - print dialog opened without print preview, and cancelled
 - silent prints
 - print target
   - PDF file
   - XPS file
   - other (probably print to physical printer, but we can never be sure)

There is some overlap with the existing PRINT_* probes, but I think we should
keep those in place temporarily until we confirm that the new probes produce
numbers that are consistent with the old probes.

This patch only adds 'print target' probes for Windows and macOS.

I use nsDeviceContextSpec*::Init() to collect the 'print target' telemetry
because the way we initialize settings from prefs (and the way macOS works in
particular) make it difficult to reliably determine the target type earlier in
the print process for all possible entry points into the printing code.

Differential Revision: https://phabricator.services.mozilla.com/D78033
2020-06-03 21:21:14 +00:00
Nan Jiang f5a6906433 Bug 1642455 - Add a targeting attribute for firstStartup r=mythmon
Differential Revision: https://phabricator.services.mozilla.com/D77913
2020-06-03 20:54:11 +00:00
Kashav Madan bf73b6d042 Bug 1592777 - Make browser_popupNotification_3.js fission-compatible, r=MattN
We don't send WebProgress location change events for remote subframe
navigations, so listen for a new WindowGlobalParent instead.

Differential Revision: https://phabricator.services.mozilla.com/D78107
2020-06-03 20:23:59 +00:00
Lee Salzman 45e9e4cbbf Bug 1641951 - let WR font sanitization ride the trains. r=jrmuizel
WR font sanitization appears relatively stable now, and we passed the 79
cutoff, so let WR font sanitization ride the trains.

Differential Revision: https://phabricator.services.mozilla.com/D78147
2020-06-03 22:37:58 +00:00
Dale Harvey d1311c34d8 Bug 1639721 - Remove geospecific defaults from Region.jsm r=Standard8,mkaply
Differential Revision: https://phabricator.services.mozilla.com/D77794
2020-06-03 22:34:40 +00:00
Daisuke Akatsuka 4d5d1517c6 Bug 1639122: Make issue item components collapsable. r=ladybenko
Differential Revision: https://phabricator.services.mozilla.com/D77426
2020-06-03 22:15:33 +00:00
Eitan Isaacson add69c1749 Bug 1642033 - Refactor mozTextAccessible to use MOX api. r=morgan
Differential Revision: https://phabricator.services.mozilla.com/D77564
2020-06-03 21:15:43 +00:00
longsonr 63247c908f Bug 1642430 - Improve SVGTests implementation r=dholbert
This is should not be a functional change, just making the methods in SVGTests easier to use/understand.
There's a little dead code removal since we can go through the same code path for empty intl.accept_languages as we do when it has a value, and we'd almost always expect it to have a value.

Differential Revision: https://phabricator.services.mozilla.com/D77694
2020-06-03 15:34:21 +00:00
Adam Roach [:abr] 3a99c5f7ec Bug 1628188: Fix formautofill unit tests r=zbraniecki
Differential Revision: https://phabricator.services.mozilla.com/D78125
2020-06-03 20:19:17 +00:00
Andrew McCreight 4ddbe0f20c Bug 1642738, part 2 - Make the message arg to two more MessageChannel send methods into a UniquePtr. r=froydnj
The reply argument that gets passed in is a stack reference which is move
assigned into, so it doesn't make sense as a unique pointer, although the
code could be restructured to return a freshly allocated object instead.

This mostly just eliminates a spurious round trip from UniquePtr to *
and back. The bulk of the patch is renaming uses of |msg| to |aMsg|.

Differential Revision: https://phabricator.services.mozilla.com/D77908
2020-06-02 21:26:37 +00:00
Andrew McCreight 1ffaefe509 Bug 1642738, part 1 - Make the non-reply MessageChannel Send messages take a UniquePtr. r=froydnj
This fixes the leak of a ShmemCreated in the case where ShareHandle fails.

Differential Revision: https://phabricator.services.mozilla.com/D77907
2020-06-02 21:25:27 +00:00
Nicholas Nethercote 515dfde5da Bug 1636706 - Re-enable test_refresh_firefox.py test on Linux 64 opt. r=mak
Differential Revision: https://phabricator.services.mozilla.com/D77768
2020-06-03 13:38:46 +00:00
Dorel Luca cffc8edb6f Backed out changeset 3d06403ffd5c (bug 1642364) for WPT failures in /semantics/interactive-elements/the-dialog-element/abspos-dialog-layout.html. CLOSED TREE 2020-06-04 00:59:44 +03:00
Bert Peers e05f202e2b Bug 1641704 - vendor tracy 0.1.1 (gfx/wr, bindings) r=gw
Differential Revision: https://phabricator.services.mozilla.com/D78100
2020-06-03 20:33:05 +00:00
Ian Bicking d5ed54159b Bug 1637706 - remove Sentry reporting in Screenshots; r=_6a68
Additionally remove a console warning message, since catcher.js will have already reported the error in the console.

Differential Revision: https://phabricator.services.mozilla.com/D75168
2020-05-13 19:12:07 +00:00
Dão Gottwald d1d0340736 Bug 1637217 - Implement telemetry for Amazon Tile Replacement. r=mikedeboer
Differential Revision: https://phabricator.services.mozilla.com/D77811
2020-06-03 15:02:12 +00:00
Dorel Luca 9377b3e955 Backed out changeset 02f8daecd98e (bug 1642884) for Mochitest failures in builds/worker/checkouts/gecko/gfx/layers/apz/src/Axis.cpp. CLOSED TREE 2020-06-03 23:11:28 +03:00
Keefer Rourke 1b3a17d452 Bug 1608515: Update the SVG IsContainingWindowElementOfType impl for Fission r=barret,dholbert
In nsSVGOuterSVGFrame::IsContainingWindowElementOfType, we now inspect
the embedder by asking the window for its browsing context, instead of
asking it directly for its frame element.

Differential Revision: https://phabricator.services.mozilla.com/D77518
2020-06-03 15:24:54 +00:00
Nick Alexander d813d2e019 Bug 1643098 - Ignore Emacs project sentinel .projectile files. r=froydnj
Differential Revision: https://phabricator.services.mozilla.com/D78123
2020-06-03 19:46:16 +00:00
Michael Cooper 8191ee17a1 Bug 1643079 - Normandy initialize should be idempotent r=rhelmer
Differential Revision: https://phabricator.services.mozilla.com/D78121
2020-06-03 19:39:06 +00:00
Emilio Cobos Álvarez e64af3d86d Bug 1643049 - Fix string usage in ClonedErrorHolder::Init. r=mccr8
Differential Revision: https://phabricator.services.mozilla.com/D78131
2020-06-03 19:16:51 +00:00
Sylvestre Ledru 47b6e279cf Bug 1643034 - Improve the top left presentation of the doc r=championshuttler
* shorter title
* remove versions display (with 4 weeks cycle, less relevant)
* display the firefox wordmark https://searchfox.org/mozilla-central/source/browser/branding/nightly/content/firefox-wordmark.svg

Differential Revision: https://phabricator.services.mozilla.com/D78074
2020-06-03 19:29:11 +00:00
championshuttler b8d9ae4413 Bug 1643074 - Add a copy button to firefox docs to copy commands. r=firefox-source-docs-reviewers,ahal
Differential Revision: https://phabricator.services.mozilla.com/D78110
2020-06-03 19:22:03 +00:00
Tom Ritter e86495e2a0 Bug 1642704 - Make ./mach try fuzzy --update install if fzf is not present r=ahal
Differential Revision: https://phabricator.services.mozilla.com/D77856
2020-06-03 19:14:48 +00:00
Greg Tatum a6e8254a01 Bug 1639144 - Fix the dropdown arrow in the profiler popup; r=julienw
Differential Revision: https://phabricator.services.mozilla.com/D77479
2020-06-03 19:28:43 +00:00
emcminn de56c3d325 Bug 1637617 - Adjusted message margins to prevent panel closing; added panel header to main view panel & updated fluent strings r=andreio,fluent-reviewers,flod
Differential Revision: https://phabricator.services.mozilla.com/D76162
2020-06-03 18:25:02 +00:00
John Paul Adrian Glaubitz 319d3205ce Bug 1325771 - mfbt: Reorder parameters for MOZ_ALIGNED_DECL r=jwalden
Currently, MOZ_ALIGNED_DECL uses the order (_type, _align) for its
parameters. However, this order makes the code less readable when
_type is a larger object like a struct because the value for _align
would be at the end of the struct definition. By swapping the order
of _type and _align, the alignment value will always be next to
the type name, regardless how far the definition of _type extends.

Differential Revision: https://phabricator.services.mozilla.com/D77288
2020-06-03 18:31:06 +00:00