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

742318 Коммитов

Автор SHA1 Сообщение Дата
James Teh 77fe9db976 Bug 493683 part 2: When an Accessible mutates, fire name change events on an Accessible labelled by it (or an ancestor thereof) via a relation. r=eeejay
HasNameDependent is now set on an Accessible (and thus its descendants) which has A LABEL_FOR relation.
When text mutations occur on such an Accessible, EventQueue::PushNameChange now queues a name change for the Accessible being labelled.

Differential Revision: https://phabricator.services.mozilla.com/D102677
2021-01-27 00:34:21 +00:00
James Teh 1af2138c00 Bug 493683 part 1: Rename HasNameDependentParent to HasNameDependent due to upcoming broader usage. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102676
2021-01-25 00:39:39 +00:00
Emilio Cobos Álvarez 27e5bcae00 Bug 1688925 - Make nsLinkState an enum class, and make it smaller. r=edgar
Differential Revision: https://phabricator.services.mozilla.com/D103061
2021-01-27 04:48:51 +00:00
Emilio Cobos Álvarez 20752f9efd Bug 1688925 - Move nsHTMLDNSPrefetch to the mozilla::dom namespace. r=smaug,edgar
Differential Revision: https://phabricator.services.mozilla.com/D103060
2021-01-27 04:37:58 +00:00
Tooru Fujisawa a77cdd404d Bug 1686375 - Part 9: Use BaseCompilationStencil::isInitialStencil instead of CompilationInput.lazy for condition. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103025
2021-01-27 03:23:22 +00:00
Tooru Fujisawa 9c250ec83c Bug 1686375 - Part 8: Use BaseCompilationStencil::isInitialStencil instead of abusing Handler::canSkip*. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103024
2021-01-27 03:23:14 +00:00
Tooru Fujisawa 3d005940a5 Bug 1686375 - Part 7: Assert BaseCompilationStencil::isInitialStencil() is consistent with the existence of lazy script. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103023
2021-01-27 03:23:12 +00:00
Tooru Fujisawa bc34ef2eca Bug 1686375 - Part 6: Cache BaseCompilationStencil::isInitialStencil() in FunctionBox and use it instead of checking scriptExtra size. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103022
2021-01-27 03:23:04 +00:00
Tooru Fujisawa 6d07d3c8d3 Bug 1686375 - Part 5: Remove SharedContext::copyScriptFields. r=tcampbell
SharedContext doesn't have script-specific field of ScriptStencil.
All fields are for ScriptStencilExtra.

Differential Revision: https://phabricator.services.mozilla.com/D103021
2021-01-27 03:22:56 +00:00
Tooru Fujisawa a62dd4030b Bug 1686375 - Part 4: Populate CompilationStencil.functionKey at the beginning of delazification. r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103020
2021-01-27 03:22:49 +00:00
Tooru Fujisawa d3b493c9e5 Bug 1686375 - Part 3: Remove misleading BaseCompilationStencil::isCompilationStencil. r=tcampbell
`BaseCompilationStencil::isCompilationStencil() == true` means it's always
`CompilationStencil`, because initial stencil is always stored into
`CompilationStencil`.
However, `BaseCompilationStencil::isCompilationStencil() == false` doesn't
always mean it's not `CompilationStencil`, because while delazification
the delazification stencil is stored into `CompilationStencil`.

Differential Revision: https://phabricator.services.mozilla.com/D103019
2021-01-27 03:22:41 +00:00
Tooru Fujisawa 2b82623df3 Bug 1686375 - Part 2: Remove BaseScript parameter from Parser constructors. r=tcampbell
CompilationStencil.input.lazy already contains it.

Differential Revision: https://phabricator.services.mozilla.com/D103018
2021-01-27 03:22:33 +00:00
Tooru Fujisawa da493ce052 Bug 1686375 - Part 1: Remove CompilationInput& parameter from JSScript::fromStencil. r=tcampbell
CompilationStencil already contains CompilationInput.

Differential Revision: https://phabricator.services.mozilla.com/D103017
2021-01-27 03:22:26 +00:00
Ting-Yu Lin 349e6f61c6 Bug 1688690 Part 3 - Simplify nsTableWrapperFrame's methods where the nsTableFrame's margin is used. r=emilio
Rename SetDesiredSize() to ComputeFinalBSize() because it now computes
only the final block-size.

Differential Revision: https://phabricator.services.mozilla.com/D103066
2021-01-27 01:52:04 +00:00
Ting-Yu Lin 60ba2b527c Bug 1688690 Part 2 - Ensure nsTableFrame's computed margins are all zero. r=emilio
This patch makes the following changes:

1. Don't call ReflowInput::CalculateBlockSideMargins() for nsTableFrame
so that setting nsTableFrame's computed margins to zero in
SizeComputationInput::InitOffsets() remains true. Also, add an assertion
in nsTableFrame::Reflow() to ensure that.

2. Remove useless nsTableFrameWrapper::GetChildMargin() because the
method is used to get nsTableFrame's margins, which are now all zero.
Also, the old code that subtracts the block-axis margin from available
block-size doesn't really make sense.

3. Pass all-zero innerMargins to nsTableWrapperFrame::SetDesiredSize(),
and use table wrapper's content-box inline-size as the final desired
border-box inline-size rather than reconstructing it from caption and
inner table's inline-size & margin like the old code.

This inline-size already takes inner table's intrinsic size and
caption's inline-size into consideration in
nsTableWrapperFrame::ComputeAutoSize(), and is the final inline-size we
want to use.

In the next part, we are going to simplify all nsTableWrapperFrame's
methods that take inner frame's margin.

Differential Revision: https://phabricator.services.mozilla.com/D103065
2021-01-27 01:53:36 +00:00
Ting-Yu Lin 90546a2af8 Bug 1688690 Part 1 - Extract content-box inline-size in nsTableWrapperFrame::Reflow(). r=emilio
`aOuterRI.ComputedSize(wm).ISize(wm)` can be extracted as a variable
because it is used repeatedly.

Differential Revision: https://phabricator.services.mozilla.com/D103064
2021-01-26 19:52:09 +00:00
Matt Woodrow 2a0c7c976f Bug 1687124 - Pass tile valid rect into invalidate_tile, so that this is available in time for begin_compositing. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D102667
2021-01-27 03:17:41 +00:00
Matt Woodrow 05e2b31dac Bug 1687124 - Make RenderCompositorSWGL clear the non-opaque dirty areas. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102666
2021-01-27 03:17:29 +00:00
Matt Woodrow eb7fe574cb Bug 1687124 - Make SwCompositor compute the set of opaque rectangles, and forward this to the RenderCompositor. r=gw,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102665
2021-01-27 03:17:16 +00:00
Jeff Muizelaar 4c90b5a22b Bug 1688985. Elaborate the comment about transparency. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D103113
2021-01-26 22:24:45 +00:00
Bogdan Tara 5eded5baf9 Backed out 3 changesets (bug 1687124) for webrender_bindings related failure CLOSED TREE
Backed out changeset 8832f33fa266 (bug 1687124)
Backed out changeset 27de9357456e (bug 1687124)
Backed out changeset b9ca229672d5 (bug 1687124)
2021-01-27 04:04:10 +02:00
Iain Ireland 727db24003 Bug 1674143: Transpile NumberMinMaxArrayResult r=jandem
Depends on D101235

Differential Revision: https://phabricator.services.mozilla.com/D101236
2021-01-14 14:21:43 +00:00
Iain Ireland 263ceb7fdd Bug 1674143: Add NumberMinMaxArrayResult r=jandem
This is about a 12x speedup on a microbenchmark.

Depends on D101234

Differential Revision: https://phabricator.services.mozilla.com/D101235
2021-01-14 14:16:15 +00:00
Iain Ireland f35651000c Bug 1674143: Transpile Int32MinMaxArrayResult r=jandem,anba
On a microbenchmark evaluating `Math.max(...input)`, this is ~30x faster.

Differential Revision: https://phabricator.services.mozilla.com/D101234
2021-01-15 18:43:43 +00:00
Iain Ireland 895af98f12 Bug 1674143: Add Int32MinMaxArrayResult r=jandem
Depends on D101232

Differential Revision: https://phabricator.services.mozilla.com/D101233
2021-01-14 14:03:05 +00:00
Iain Ireland f3db344aee Bug 1674143: Update column offset testcase r=jorendorff
For a spread call like `foo(...args)`, if OptimizeSpreadCall succeeds, we don't hit a breakpoint associated with `...args`, because we skip past that code. Before the parent patch, this wasn't a problem in this testcase, because we were only generating OptimizeSpreadCall for rest parameters. After that patch, we are generating OptimizeSpreadCall more frequently.

We don't actually care about hitting this breakpoint, so I'm just updating the test.

Differential Revision: https://phabricator.services.mozilla.com/D101232
2021-01-27 01:30:36 +00:00
Iain Ireland de1bca0b4f Bug 1674143: Emit OptimizeSpreadCall for non-rest arguments r=arai
When OptimizeSpreadCall was introduced, we conservatively only emitted it when the spread argument was a rest parameter. At the time, OptimizeSpreadCall required a VM call. It has been rewritten to use an IC, making the failure case very efficient. If we do not emit OptimizeSpreadCall, then we must allocate and copy an array object, even if the argument is already a packed array. In a microbenchmark, emitting OptimizeSpreadCall for non-rest-parameter cases is more than a 2x speedup, and generating the OptimizeSpreadCall in a non-packed-array case is <5% slowdown. The optimized case is also likely to be much more common in real code.

This patch extends OptimizeSpreadCall to be emitted whenever the single spread argument is any Name node. In theory we might also want to allow other nodes, but currently the bytecode emitter will call emitTree on the first argument twice in this case, which is fine for a Name node but broke in testing for `foo(...function() {})` (because we tried emitting a non-hoisted function twice).

Differential Revision: https://phabricator.services.mozilla.com/D101231
2021-01-08 23:34:45 +00:00
Emily McDonough c4b65cfdda Bug 1647843 - Add page-size parsing to Servo r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D102360
2021-01-27 00:47:56 +00:00
Matt Woodrow 5cbbfdc99f Bug 1687124 - Pass tile valid rect into invalidate_tile, so that this is available in time for begin_compositing. r=gw
Differential Revision: https://phabricator.services.mozilla.com/D102667
2021-01-27 00:48:06 +00:00
Matt Woodrow 7700b29cec Bug 1687124 - Make RenderCompositorSWGL clear the non-opaque dirty areas. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102666
2021-01-26 07:03:00 +00:00
Matt Woodrow 1875a8e5ab Bug 1687124 - Make SwCompositor compute the set of opaque rectangles, and forward this to the RenderCompositor. r=gw,lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D102665
2021-01-26 06:53:05 +00:00
Bogdan Tara a9b6b7cff8 Backed out changeset a77ccd1c1659 (bug 1687358) for browser_lazyload_telemetry.js failures CLOSED TREE 2021-01-27 02:46:06 +02:00
Cosmin Sabou 7b8c450692 Backed out changeset ece826cc95e0 (bug 1688668) for causing bug 1688999.
CLOSED TREE
2021-01-27 01:05:40 +02:00
Steve Fink 536f49d107 Bug 1688919 - Implement `mach jit-test --cgc` r=tcampbell
Differential Revision: https://phabricator.services.mozilla.com/D103056
2021-01-26 23:22:46 +00:00
Andreu Botella ce8162c71a Bug 1665014 - Make the check for hidden input "_charset_" case-insensitive. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D103082
2021-01-26 23:17:17 +00:00
Sean Feng 14dee2e52c Bug 1687358 - Implement telemetry probes to determine the best possible threshold for <lazyload> r=emilio
This patch implements five telemetry probes to help us learn how
lazyload thresholds perform in the wild.

Differential Revision: https://phabricator.services.mozilla.com/D102845
2021-01-26 21:54:33 +00:00
Glenn Watson 97acc7ed1a Bug 1687863 - Refactor picture cache barriers and scroll bar slice code. r=nical
Instead of keeping a stacking context around for scrollbar containers,
extend and use the tile cache barrier code to create them. This
removes the final remaining code path that creates pass through
picture primitives.

The tile cache barrier changes also form the basis of how we will
make blend containers and backdrop roots work in a follow up patch.

Blend containers and backdrop roots will become redundant stacking
contexts when they exist at the start of a tile cache, which will
save an entire off-screen surface / constant invalidation.

Differential Revision: https://phabricator.services.mozilla.com/D102527
2021-01-26 23:02:37 +00:00
Glenn Watson ece7eb45cc Bug 1687604 - Skip pass through leaf pictures during scene building. r=nical
Previously, a leaf picture would be created unconditionally when
popping a stacking context during scene building. This results in
many pass-through pictures being created that are often not required.

This patch introduces a helper struct that delays creation of a
pass-through wrapping picture until it's known to be needed (and
instead adds the prim_list to a wrapping picture where possible).

In a follow up patch, the last couple of places that create pass
through pictures via pop_stacking_context will be removed.

Differential Revision: https://phabricator.services.mozilla.com/D102381
2021-01-26 23:02:50 +00:00
Nick Alexander 6629e8cc0c Bug 1688861 - Fix test_categoryBackgroundTaskRegistration when !MOZ_BACKGROUNDTASK. r=nika
This was an oversight: as the commit series progressed, I didn't
re-test with !MOZ_BACKGROUNDTASK defined.

Differential Revision: https://phabricator.services.mozilla.com/D103081
2021-01-26 21:37:52 +00:00
Emilio Cobos Álvarez dda71411f4 Bug 787521 - Improve tests for chrome-only media queries. r=dholbert
So as to test that they are in fact not parseable by content.

Keep a centralized list of these rather than duplicating tests.

Differential Revision: https://phabricator.services.mozilla.com/D102966
2021-01-26 22:56:03 +00:00
Steven MacLeod 3869c69e78 Bug 1677774 - Relax CanSet for TouchEventsOverrideInternal. r=nika
As a temporary fix to prevent crashes we are loosening the `CanSet`
restrictions for TouchEventsOverrideInternal. In the future this will
be fixed properly by changing DevTools to set this property from the
parent only, at which time tighter restrictions on setting
`TouchEventsOverrideInternal` may be added.

Differential Revision: https://phabricator.services.mozilla.com/D103080
2021-01-26 20:38:20 +00:00
Andrew McCreight 1aac9cb98a Bug 1571186 - Disable TestExpirationTracker on debug OSX for frequent failures. r=KrisWright
Apparently this test has a history of failures, and it recently
started failing frequently for no apparent reason.

Differential Revision: https://phabricator.services.mozilla.com/D103116
2021-01-26 22:43:58 +00:00
Dzmitry Malyshau 291f86a68e Bug 1688983 - Rename shared member in WebRender shaders r=gw
just a rename

Differential Revision: https://phabricator.services.mozilla.com/D103103
2021-01-26 22:41:41 +00:00
Daniel Holbert 0367ee057d Bug 1540635: Adjust a fuzzy annotation for reftest 1295466-1.xhtml to be specific to Windows 7, rather than to the "!nativeThemePref" configuration. r=emilio
I'm using "/^Windows\x20NT\x206\.1/.test(http.oscpu)" to check for Windows 7,
which I found (with Win7-related code comments) elsewhere in reftest.list
files.

I'm replacing a "fuzzy-if(!nativeThemePref,...)" annotation here, which I think
was simply mis-applied here -- this test doesn't have any form controls or
theme-related stuff, so it doesn't make sense that its rendering would be
theme-dependent.  I suspect this annotation was added by mistake, due to this
test intermittently failing by coincidence on a try run where the
!nativeThemePref configuration was being tested.

Differential Revision: https://phabricator.services.mozilla.com/D103083
2021-01-26 20:10:41 +00:00
sotaro 450a2f0808 Bug 1688810 - Remove unused VideoFrameContainer::ClearCurrentFrame() r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D103012
2021-01-26 22:30:45 +00:00
Sebastian Hengst 324150bb9b Bug 1688148 set some platforms as intermittent for forced-colors-mode-{43,45} reloaded. DONTBUILD
Differential Revision: https://phabricator.services.mozilla.com/D103114
2021-01-26 22:29:33 +00:00
Emilio Cobos Álvarez 5fd3126bf6 Bug 1688978 - Snap border widths in the non-native theme like we snap layout borders. r=mstange
We might want to snap focus outline widths as well, but that's harder
because it has various segments and separation between them, so we
probably want to snap those separately... So for now only border rects
probably makes sense.

Differential Revision: https://phabricator.services.mozilla.com/D103106
2021-01-26 22:12:03 +00:00
Emilio Cobos Álvarez 31f6b6f829 Bug 1688978 - Add a missing argument in mac-only code. CLOSED TREE
MANUAL PUSH: Mac build fix.
2021-01-26 23:14:36 +01:00
Jeff Muizelaar 9d73fdf217 Bug 1688985 - Add a comment about different approaches for transparency on Windows. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D103101
2021-01-26 21:57:23 +00:00
Edgar Chen 3642bf1c51 Bug 1683656 - Make dom/events/test/test_mouse_capture_iframe.html waiting for apz stable before starting tests; r=smaug
test.events.async.enabled is set to true in this test, the synthesized event
would be routed to apz, so wait apz getting stable before starting test to avoid
possible timing problem that causes intermittent failure.

Differential Revision: https://phabricator.services.mozilla.com/D103042
2021-01-26 21:51:18 +00:00