Commit Graph

742446 Commits

Author SHA1 Message Date
Edgar Chen
b81855eeb2 Bug 1672330 - Move pointer lock code to PointerLockManager; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D101054
2021-01-27 10:08:29 +00:00
Edgar Chen
b9bee2d7ae Bug 1509710 - Prevent dispatching pointermove events targeted at a slider frame to web content, if the scrollbar is being dragged; r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D102935
2021-01-27 09:42:19 +00:00
Mirko Brodesser
9b0eb6b20d Bug 1688832: part 10) Hide UniquePtrs in AccessibleCaretManager::Carets. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D102927
2021-01-27 09:43:14 +00:00
Mirko Brodesser
063ef6804a Bug 1688832: part 9) Add non-default constructor to AccessibleCaretManager::Carets. r=TYLin
Preparation to hide the `UniquePtr`s of `Carets`.

Differential Revision: https://phabricator.services.mozilla.com/D102925
2021-01-27 09:43:08 +00:00
Mirko Brodesser
c67ce67203 Bug 1688832: part 8) Add AccessibleCaretManager::Carets::GetSecond. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D102924
2021-01-27 09:43:00 +00:00
Mirko Brodesser
875d96d72f Bug 1688832: part 7) Add AccessibleCaretManager::Carets::GetFirst. r=TYLin
Will help to hide the `UniquePtr`s.

Differential Revision: https://phabricator.services.mozilla.com/D102923
2021-01-27 09:43:42 +00:00
Mirko Brodesser
f172fe3858 Bug 1688832: part 6) Prepare AccessibleCaretManager::DispatchCaretStateChangedEvent for splitting. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D102922
2021-01-27 09:43:40 +00:00
Mirko Brodesser
45bf972c17 Bug 1688832: part 5) Add static AccessibleCaretManager::GetSelection, ::GetFrameSelection. r=TYLin
Preparation to simplify `AccessibleCaretManager::Dispatch...`.

Differential Revision: https://phabricator.services.mozilla.com/D102921
2021-01-27 09:43:37 +00:00
Mirko Brodesser
acee8474e0 Bug 1688832: part 4) Add AccessibleCaretManager::SelectionStringifyer. r=TYLin
Will help to simplify `AccessibleCaretManager::Dispatch...`.

Differential Revision: https://phabricator.services.mozilla.com/D102920
2021-01-27 09:43:35 +00:00
Mirko Brodesser
3d4ea57f64 Bug 1688832: part 3) Add AccessibleCaretManager::Carets::AreVisuallyVisible r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D102919
2021-01-27 09:43:32 +00:00
Mirko Brodesser
5394d16b24 Bug 1688832: part 2) Add AccessibleCaretManager::Carets::AreLogicallyVisible. r=TYLin
Differential Revision: https://phabricator.services.mozilla.com/D102918
2021-01-27 09:43:30 +00:00
Mirko Brodesser
2d9fd75ccc Bug 1688832: part 1) Encapsulate AccessibleCaretManager::mFirstCaret, mSecondCaret in mCarets. r=TYLin
They belong together.

Differential Revision: https://phabricator.services.mozilla.com/D102917
2021-01-27 09:42:22 +00:00
Nicolas Chevobbe
7fd71ffb1f Bug 1438979 - [devtools] Re-enable browser_webconsole_network_messages_expand.js. r=bomsy.
The test is split in two to make it easier to read.
The test was quite old and still had references to the Params panel, which is
now removed.
The test was also failing when checking the stacktrace, and this was due to an
issue from the webconsole messsage reducer where we would completly replace
the `networkMessagesUpdateById` on NETWORK_MESSAGES_UPDATE, and that would lead
to the stracktrace being removed.
In the Stacktrace component, we prevent fetching the stacktrace if it's already
available.

Differential Revision: https://phabricator.services.mozilla.com/D56884
2021-01-27 09:37:23 +00:00
Kershaw Chang
f5724e5421 Bug 1683593 - Use bracketed IPv6 address to get cookies r=baku
Differential Revision: https://phabricator.services.mozilla.com/D102208
2021-01-27 09:07:28 +00:00
Valentin Gosu
49617f2e5c Bug 1687618 - Remove browser_networkIsolation.js r=baku
This test checked the implementation of cache_isolation by checking the
values of the hashing keys. This has been removed in favour of
privacy.partition.network_state (Bug 1590107)

Depends on D102715

Differential Revision: https://phabricator.services.mozilla.com/D103030
2021-01-27 09:02:52 +00:00
Valentin Gosu
2d8c4e4c26 Bug 1687618 - Remove implementation of IsIsolated and TopWindowOrigin r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102715
2021-01-26 10:32:43 +00:00
Valentin Gosu
53b6dbb8ec Bug 1687618 - Remove isolated and topWindowOrigin from altServices r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102714
2021-01-26 11:08:46 +00:00
Valentin Gosu
77df497a8e Bug 1687618 - Remove topWindowOrigin from nsHttpConnectionInfo r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102713
2021-01-26 10:57:40 +00:00
Valentin Gosu
e1ed055c88 Bug 1687618 - Remove isolated bit from nsHttpConnectionInfo r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102712
2021-01-26 10:32:14 +00:00
Valentin Gosu
d2046a6e97 Bug 1687618 - Remove browser.cache.cache_isolation r=necko-reviewers,dragana
Differential Revision: https://phabricator.services.mozilla.com/D102711
2021-01-26 10:32:07 +00:00
Jamie Nicol
62eb49693e Bug 1688921 - Support GPU cache resize when EXT_color_buffer_float is not supported. r=kvark
Currently when the GPU cache is resized we allocate a new texture and
then copy the contents of the old texture to the new texture. This
copy requires either EXT_copy_image (for glCopyImageSubData) or
EXT_color_buffer_float (to bind the RGBAF32 texture to a framebuffer).

On devices where neither extension is supported, don't attempt to copy
the old texture. Instead mark the entire CPU-side copy of the cache as
dirty, meaning we will subsequently upload the entire contents to the
new texture. (A complete CPU-side copy is only mainted for the
PixelBuffer gpu cache bus type, not for Scatter ones. However, as the
Scatter type also requires EXT_color_buffer_float, we will only be in
this situation for PixelBuffer buses.)

Differential Revision: https://phabricator.services.mozilla.com/D103071
2021-01-27 08:47:11 +00:00
Emilio Cobos Álvarez
fd5fcc2c87 Bug 1687878 - Fix test_bug703150.xhtml with nnt on linux. r=dholbert
The linux non-native-theme doesn't create scrollbar buttons, so we can't
rely on the indices.

Differential Revision: https://phabricator.services.mozilla.com/D103145
2021-01-27 07:45:03 +00:00
Timothy Nikkel
ce5fd1398c Bug 1687928. Move call to MaybeCreateDisplayPortInFirstScrollFrameEncountered before DecideScrollableLayer in PaintFrame. r=botond
Because DecideScrollableLayer uses the existence of a displayport in it's decision.

In practice though we only paint from process root documents and the root scroll frame will have a displayport (almost?) always. So it's a small correctness improvement that is likely to have little effect.

Differential Revision: https://phabricator.services.mozilla.com/D102588
2021-01-25 23:33:21 +00:00
Lee Salzman
b9384b091e Bug 1675590 - avoid using alpha-pass version of gradient shader for clip-mask-only cases. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D102999
2021-01-26 03:56:10 +00:00
Lee Salzman
8b4b32c5c1 Bug 1675590 - implement provisional fast-paths for linear and radial gradients. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D103136
2021-01-27 06:00:15 +00:00
James Teh
38a46d893a Bug 493683 part 5: When aria-labell/describedby is set, set HasName/DescriptionDependent on the target subtree. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102680
2021-01-25 17:31:19 +00:00
James Teh
49597d49e1 Bug 493683 part 4: Add a PivotRule to match any local Accessible in the same document. r=eeejay
Differential Revision: https://phabricator.services.mozilla.com/D102679
2021-01-25 01:12:17 +00:00
James Teh
c9893f0237 Bug 493683 part 3: When an Accessible mutates, fire description change events on an Accessible described by it (or an ancestor thereof) via a relation. r=eeejay
This uses a similar approach to HasNameDependent, introducing a new HasDescriptionDependent.
However, we don't fire events on ancestors, since a description is never computed from an Accessible's own subtree without an explicit described by relation.

Differential Revision: https://phabricator.services.mozilla.com/D102678
2021-01-27 00:39:08 +00:00
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