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

70472 Коммитов

Автор SHA1 Сообщение Дата
Mats Palmgren 6ccb338227 Bug 1583660 - Reinstate default background color / size for -moz-range-track on Android. r=jwatt
This reverts the changes from bug 1481593 / bug 1317870 which broke
the default rendering on Android only (since it doesn't have
a native theme for <input type=range>).

Differential Revision: https://phabricator.services.mozilla.com/D47345

--HG--
extra : moz-landing-system : lando
2019-10-02 21:04:32 +00:00
Emilio Cobos Álvarez 59196e7850 No bug - remove silly assertion as OwnerDoc() never returns null.
Differential Revision: https://phabricator.services.mozilla.com/D47994

--HG--
extra : moz-landing-system : lando
2019-10-02 23:29:51 +00:00
Lee Salzman 5d27394460 Bug 1573683 - adjust fuzz for webkit-text-stroke-propery-003.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47939

--HG--
extra : moz-landing-system : lando
2019-10-02 17:31:38 +00:00
Emilio Cobos Álvarez a9d4bf384e Bug 1585317 - When using the scrollport, account for scroll-padding for anchor node selection. r=botond
Unclear whether the visual viewport code path is the right thing to do at all.

Differential Revision: https://phabricator.services.mozilla.com/D47791

--HG--
extra : moz-landing-system : lando
2019-10-02 17:24:25 +00:00
Lee Salzman 6ae3f3aa43 Bug 1584760 - expand fuzz range more for svg-as-border-image-4b.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47944

--HG--
extra : moz-landing-system : lando
2019-10-02 17:27:39 +00:00
Lee Salzman e4347a245f Bug 1582915 - adjust fuzz for element-paint-native-widget.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47940

--HG--
extra : moz-landing-system : lando
2019-10-02 17:02:05 +00:00
Lee Salzman 458e27120e Bug 1583797 - adjust webrender fuzz for border-image-repeat-round-2.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47934

--HG--
extra : moz-landing-system : lando
2019-10-02 16:40:58 +00:00
Lee Salzman fd28aa44da Bug 1583707 - enable text subpixel positioning on Android and Linux. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D47035

--HG--
extra : moz-landing-system : lando
2019-10-02 14:04:45 +00:00
Andrew Osmond ea01661965 Bug 1551088 - Part 8. Add reftest annotations for slight premultiplication differences. r=tnikkel
Differential Revision: https://phabricator.services.mozilla.com/D46451

--HG--
extra : moz-landing-system : lando
2019-10-02 13:37:32 +00:00
Geoff Brown 23a9f21ad1 Bug 1457050 - Allow range of assertions in crashtest 453894-1.xhtml on Android; r=m_kato
Avoid intermittent test failures on android.
The existing android assertion count was introduced by bug 1405550, to avoid
assertion count failures with stylo.

Differential Revision: https://phabricator.services.mozilla.com/D47792

--HG--
extra : moz-landing-system : lando
2019-10-02 00:00:14 +00:00
Brindusan Cristian 267e79dacc Bug 1583736 - Fix Eslint failure due to Delete `,` r=me CLOSED TREE 2019-10-02 07:41:42 +03:00
Jeff Muizelaar 933084b066 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

Differential Revision: https://phabricator.services.mozilla.com/D47275

--HG--
extra : moz-landing-system : lando
2019-10-01 22:23:45 +00:00
Cameron McCormack bcd2fa209b Bug 1581579 - Fix scrollbar style caching conflict for <resizer dir="bottom"> vs <resizer dir="bottomleft">. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D47568

--HG--
extra : moz-landing-system : lando
2019-09-30 09:51:07 +00:00
Emilio Cobos Álvarez ea3d3a0084 Bug 1583736 - Don't allow negative radii in radial gradients. r=boris
Mostly renaming for clarity, as the gradient parsing code is a bit hairy.

This also changes -webkit- gradients, which is, I think, the right thing to do
(otherwise I need to give up on the type system and sprinkle parse_non_negatives
around, which would be unfortunate).

I filed https://bugs.chromium.org/p/chromium/issues/detail?id=1008112 on
Chromium still accepting negative radii for those, so will wait to submit the
patch for review until they reply there with their intentions.

Differential Revision: https://phabricator.services.mozilla.com/D47141

--HG--
extra : moz-landing-system : lando
2019-10-01 21:44:41 +00:00
Glenn Watson 334f0b22f4 Bug 1584439 - Enable picture caching for scroll bars and UI content. r=nical
Once this patch lands, all content drawn by WebRender is drawn into
a picture cache surface.

This will incur some extra GPU memory overhead since there are extra
GPU texture buffers. Much of this can be reduced by adding a couple
of simple optimizations in future to detect tiles that are solid
colors only.

With this change, we'll now be able to provide exact dirty rects for
the entire screen without any hacks, and start the work to draw into
OS compositor surfaces directly.

Differential Revision: https://phabricator.services.mozilla.com/D47395

--HG--
extra : moz-landing-system : lando
2019-10-01 08:52:40 +00:00
Brindusan Cristian 225180bff0 Bug 1585217 - Fix Eslint. r=me CLOSED TREE 2019-10-02 02:00:51 +03:00
Emilio Cobos Álvarez caccd3a1d9 Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D47715

--HG--
extra : moz-landing-system : lando
2019-10-01 17:09:23 +00:00
Brindusan Cristian e139ad7ab8 Backed out changeset 88a32122785b (bug 1580922) for reftest failures at webkit-text-stroke-property-001.html. CLOSED TREE 2019-10-01 22:29:12 +03:00
Nicolas Silva a00d86beeb Bug 1582996 - Adjust reftest fuzziness of layout/reftests/svg/radialGradient-basic-03.svg. r=lsalzman
Differential Revision: https://phabricator.services.mozilla.com/D46811

--HG--
extra : moz-landing-system : lando
2019-09-30 14:46:16 +00:00
Jeff Muizelaar 869980f0d4 Bug 1580922. Partially revert blob recoord fallback changes. r=nical
This moves the origin of fallback blobs back to the top left of their display
item bounds. This is what they were before the patches in bug 1568227 and makes
more sense because there's not necessarily a reference frame above the fallback
frame which means that the coordinates of the display item can change without
us wanting to invalidate the interior.

Differential Revision: https://phabricator.services.mozilla.com/D47275

--HG--
extra : moz-landing-system : lando
2019-10-01 12:15:53 +00:00
Emilio Cobos Álvarez 4b9dcc4e53 Bug 1584950 - Use StaticPrefs in ScrollFrameHelper::IsSmoothScrollingEnabled. r=njn
Differential Revision: https://phabricator.services.mozilla.com/D47589

--HG--
extra : moz-landing-system : lando
2019-10-01 08:01:22 +00:00
Noemi Erli 20a7022489 Backed out changeset 3f8c2c77cd63 (bug 1585217) for failing in rowser_openLayoutDebug.js CLOSED TREE 2019-10-01 19:07:26 +03:00
Lee Salzman ff930e2935 Bug 1584760 - adjust fuzz more for svg-as-border-image-4b.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47632

--HG--
extra : moz-landing-system : lando
2019-10-01 12:58:21 +00:00
Emilio Cobos Álvarez 078e5fd7fa Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D47715

--HG--
extra : moz-landing-system : lando
2019-10-01 14:23:12 +00:00
Gabriele Svelto 10d41866a5 Bug 1585156 - Remove useless inclusions of nsIDOMWindow.h and nsIDOMWindowUtils.h r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D47678

--HG--
extra : moz-landing-system : lando
2019-09-30 22:06:47 +00:00
arthur.iakab 9bc47253cc Backed out changeset 3eba60b905c0 (bug 1584439) for causing wrench bustages CLOSED TREE 2019-10-01 09:12:49 +03:00
Glenn Watson cc9a8ee004 Bug 1584439 - Enable picture caching for scroll bars and UI content. r=nical
Once this patch lands, all content drawn by WebRender is drawn into
a picture cache surface.

This will incur some extra GPU memory overhead since there are extra
GPU texture buffers. Much of this can be reduced by adding a couple
of simple optimizations in future to detect tiles that are solid
colors only.

With this change, we'll now be able to provide exact dirty rects for
the entire screen without any hacks, and start the work to draw into
OS compositor surfaces directly.

Differential Revision: https://phabricator.services.mozilla.com/D47395

--HG--
extra : moz-landing-system : lando
2019-10-01 04:51:56 +00:00
Ciure Andrei 896ee6e424 Backed out changeset 4f126cfd8012 (bug 1584439) for causing wrench bustage CLOSED TREE 2019-10-01 07:39:54 +03:00
Glenn Watson e861c795b9 Bug 1584439 - Enable picture caching for scroll bars and UI content. r=nical
Once this patch lands, all content drawn by WebRender is drawn into
a picture cache surface.

This will incur some extra GPU memory overhead since there are extra
GPU texture buffers. Much of this can be reduced by adding a couple
of simple optimizations in future to detect tiles that are solid
colors only.

With this change, we'll now be able to provide exact dirty rects for
the entire screen without any hacks, and start the work to draw into
OS compositor surfaces directly.

Differential Revision: https://phabricator.services.mozilla.com/D47395

--HG--
extra : moz-landing-system : lando
2019-10-01 01:34:01 +00:00
Lee Salzman a82f5a6dea Bug 1582390 - adjust fuzz for attachment-local-clipping-image-6.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47722

--HG--
extra : moz-landing-system : lando
2019-10-01 02:37:53 +00:00
Ciure Andrei fa4f19c71e Backed out changeset f5716082ad9c (bug 1585217) for causing ESlint failure CLOSED TREE 2019-10-01 05:51:21 +03:00
Emilio Cobos Álvarez 2b5100f2c5 Bug 1585217 - Make the layout debugger with -autoclose handle content process crashes. r=heycam
This means that you can use it as a very light-weight crashtest harness by
using:

MOZ_GDB_SLEEP=0 ./mach run -layoutdebug <file> -autoclose

Right now we just never exit otherwise.

Differential Revision: https://phabricator.services.mozilla.com/D47715

--HG--
extra : moz-landing-system : lando
2019-10-01 02:17:48 +00:00
Matt Woodrow 4ad92502db Bug 1580738 - Generate unique per-frame-keys for all nsDisplayOwnLayer call sites. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D47673

--HG--
extra : moz-landing-system : lando
2019-09-30 21:01:20 +00:00
Boris Chiou 1161a0a322 Bug 1510486 - Add reftests for creating stacking-context and fixpos containing block on individual transforms. r=hiro
To make sure the test coverage is enough for individual transforms.

Differential Revision: https://phabricator.services.mozilla.com/D47515

--HG--
extra : moz-landing-system : lando
2019-09-30 21:52:32 +00:00
Boris Chiou 01cd967fa8 Bug 1510486 - Set WillChangeBits::TRANSFORM for individual transform. r=hiro
We always check StyleWillChangeBits_TRANSFORM bit together with a
transform-like property set, so using WillChangeBits::TRANSFORM bit to
represent all transform-like properties is ok.

However, it seems the new test case works well even if we don't have this
patch. I still add it for individual transform properties to make sure
the test coverage is enough anyway.

Differential Revision: https://phabricator.services.mozilla.com/D47509

--HG--
extra : moz-landing-system : lando
2019-09-30 21:52:30 +00:00
Hiroyuki Ikezoe 3be0a1e6ab Bug 1511442 - A crash test by fuzzing. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D47565

--HG--
extra : moz-landing-system : lando
2019-09-30 19:46:53 +00:00
Brad Werth 3f5604e1cf Bug 1384266 Part 2: Add a test of baseline in flex sideways-rl container. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D45425

--HG--
extra : moz-landing-system : lando
2019-09-30 21:07:35 +00:00
Brad Werth 2f3427bf7c Bug 1384266 Part 1: Make FlexItem::GetBaselineOffsetFromOuterCrossEdge use logical, not physical calculations. r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D45424

--HG--
extra : moz-landing-system : lando
2019-09-30 21:08:08 +00:00
Jeff Muizelaar 5d3cd1472d Bug 1582645. Add crash test to manifest.
The earlier commit added the file but not the listing in the manifest.

Differential Revision: https://phabricator.services.mozilla.com/D47664

--HG--
extra : moz-landing-system : lando
2019-09-30 20:09:36 +00:00
Jeff Muizelaar 9651ff76cf Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D47028

--HG--
extra : moz-landing-system : lando
2019-09-30 17:48:34 +00:00
Mats Palmgren b15d020bef Bug 1581106 part 3 - [css-grid-2] Implement 'repeat(auto-fill, <line-names>)' in subgridded axis. r=emilio
Differential Revision: https://phabricator.services.mozilla.com/D46895

--HG--
extra : moz-landing-system : lando
2019-09-30 17:32:52 +00:00
Mats Palmgren 7d90d80ff0 Bug 1581106 part 2 - Simplify LineNameMap ctor by deducing track clamping bounds instead of passing them as params (idempotent change). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46373

--HG--
extra : moz-landing-system : lando
2019-09-30 17:51:28 +00:00
Mats Palmgren bb73a535cf Bug 1581106 part 1 - Remove unused aNumRepeatTracks param (idempotent change). r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46372

--HG--
extra : moz-landing-system : lando
2019-09-30 17:50:55 +00:00
Geoff Brown d964f2d601 Bug 1584290 - Enable many reftests on Android; r=geckoview-reviewers,snorp
Most of these tests have been disabled for a long time; they run well
in the current test environment.

Differential Revision: https://phabricator.services.mozilla.com/D47616

--HG--
extra : moz-landing-system : lando
2019-09-30 16:34:16 +00:00
Geoff Brown 9d86f3f5e1 Bug 1584652 - add Android fuzzy-if for css-ui-valid/select/select-valid.html; r=dholbert
This avoids frequent intermittent failures observed with changes to be made by
bug 1584290 (changes which appear unrelated to this test).

Differential Revision: https://phabricator.services.mozilla.com/D47615

--HG--
extra : moz-landing-system : lando
2019-09-30 15:13:37 +00:00
Emilio Cobos Álvarez c36001b625 Bug 1546783 - Test that we preload @import stylesheets. r=bzbarsky
Differential Revision: https://phabricator.services.mozilla.com/D47486

--HG--
extra : moz-landing-system : lando
2019-09-30 13:52:14 +00:00
Emilio Cobos Álvarez b41a8a2d6f Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

Differential Revision: https://phabricator.services.mozilla.com/D47469

--HG--
extra : moz-landing-system : lando
2019-09-30 13:29:23 +00:00
Coroiu Cristina b3555c999a Backed out 3 changesets (bug 1546783) on request by emilio on a CLOSED TREE
Backed out changeset ad3822105edc (bug 1546783)
Backed out changeset a8ac28c2bfc7 (bug 1546783)
Backed out changeset b2678d2e55fb (bug 1546783)
2019-09-30 16:23:16 +03:00
Emilio Cobos Álvarez 4fe6a4a5ca Bug 1546783 - Add a best-effort @import rule scanner for the parser. r=bzbarsky
Doesn't recognize all the edge cases, but I think this should be good enough.

Let me know if you think something common is missing.

Differential Revision: https://phabricator.services.mozilla.com/D47469

--HG--
extra : moz-landing-system : lando
2019-09-30 10:37:22 +00:00
Coroiu Cristina c7b6ea810b Merge autoland to mozilla-central a=merge 2019-09-30 12:53:04 +03:00
Coroiu Cristina 161096b665 Backed out changeset 43ac974f69db (bug 1582645) for increasing the crash volume a=backout 2019-09-30 12:51:23 +03:00
Emilio Cobos Álvarez c66f205994 Bug 1584263 - No need to flush delayed resizes while flushing layout. r=bzbarsky
We have already called FlushDelayedResize(false) earlier in this method, and
after bug 1583534 that queues a reflow if one is needed. All the boolean
controls is whether reflows are processed by the FlushDelayedResize call.

Since we plan to process reflows anyway a few lines later, there is no need to
do that explicitly that via FlushDelayedResize(true).

Differential Revision: https://phabricator.services.mozilla.com/D47287

--HG--
extra : moz-landing-system : lando
2019-09-29 20:41:17 +00:00
Tim Nguyen 5c78a8e3de Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-28 00:20:32 +00:00
Daniel Holbert 0445b9ba16 Bug 1584638: Relax -mox-box blockification assertions to be debug-only. r=bgrins
Differential Revision: https://phabricator.services.mozilla.com/D47505

--HG--
extra : moz-landing-system : lando
2019-09-27 21:31:04 +00:00
Dorel Luca 759e72860c Backed out 2 changesets (bug 1582530) for Creshtest failures in ayout/generic/ReflowInput.cpp. CLOSED TREE
Backed out changeset 536e78fea3de (bug 1582530)
Backed out changeset ae88c31cf531 (bug 1582530)

--HG--
extra : amend_source : cd6928208a1916e72a8f14952adc85f5e5e2c47d
2019-09-28 00:31:24 +03:00
Ting-Yu Lin 2c9b42d617 Bug 1547160 - Update comments for expected column-span test failures. r=dbaron
multicol-span-all-margin-bottom-001.xht and multicol-span-none-001.xht
have been patched upstream. They should pass after we import from wpt.

DONTBUILD because this is a comment-only change.

Differential Revision: https://phabricator.services.mozilla.com/D47340

--HG--
extra : moz-landing-system : lando
2019-09-27 19:00:36 +00:00
Tim Nguyen 597206ae06 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao,dholbert
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 20:14:37 +00:00
L. David Baron e09d436481 Bug 1220352 - Make baseline positioning in vertical writing-mode independent of border and padding. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D47014

--HG--
extra : moz-landing-system : lando
2019-09-25 20:47:35 +00:00
Brian Grinstead 92fc475e5b Bug 1584306 - Replace <xul:textbox> with <html:input> in layout/tools/layout-debug/ui/content/layoutdebug.xul;r=dholbert
Differential Revision: https://phabricator.services.mozilla.com/D47329

--HG--
extra : moz-landing-system : lando
2019-09-27 17:23:31 +00:00
Paul Zuehlcke 97eafa8dd0 Bug 1402957 - Refactored remaining tests using nsIPermissionManager URI methods to principals. r=johannh
Differential Revision: https://phabricator.services.mozilla.com/D47252

--HG--
extra : moz-landing-system : lando
2019-09-27 09:48:53 +00:00
Anny Gakhokidze f1c694e18f Bug 1582531 - Update fission annotations for skipped tests that are now passing succesfully, r=kmag
Differential Revision: https://phabricator.services.mozilla.com/D47347

--HG--
extra : moz-landing-system : lando
2019-09-27 14:25:10 +00:00
Brian Grinstead 5532d17616 Bug 1583377 - Remove xul:page and replace consumers with xul:window r=NeilDeakin
Differential Revision: https://phabricator.services.mozilla.com/D46869

--HG--
extra : moz-landing-system : lando
2019-09-27 13:04:20 +00:00
Emilio Cobos Álvarez e0740e7784 Bug 1578933 - Run scroll anchoring adjustments when blocking script. r=dholbert
I wanted to fix the more general problem and script-block more of
FlushPendingNotifications, but simple attempts to do that have resulted in
terribly orange try runs with very bizarre failures, so in the "perfect is the
enemy of good" spirit, fix the issue at hand (scroll anchoring adjustments not
dealing with layout reentering beneath them) by running them while
script-blocked, which is the right thing to do anyway.

Differential Revision: https://phabricator.services.mozilla.com/D47256

--HG--
extra : moz-landing-system : lando
2019-09-26 17:07:03 +00:00
Jeff Muizelaar bdcf335677 Bug 1582645. Only set mLastVisibleRect after we've sent it to WebRender. r=nical
This avoids us setting when we don't send it. e.g. When it's empty.

Differential Revision: https://phabricator.services.mozilla.com/D47028

--HG--
extra : moz-landing-system : lando
2019-09-26 21:08:29 +00:00
shindli 964bceeb91 Backed out 2 changesets (bug 1582530) for causing reftest permafailures in /builds/worker/workspace/build/src/layout/generic/ReflowInput.cpp:2188 CLOSED TREE
Backed out changeset c0fcdc789da3 (bug 1582530)
Backed out changeset 7eb69d3d03a5 (bug 1582530)
2019-09-27 05:15:08 +03:00
Tim Nguyen 4750005faf Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 01:19:11 +00:00
Brindusan Cristian 555f911666 Backed out 2 changesets (bug 1582530) for crashtest assertions on ReflowInput.cpp. CLOSED TREE
Backed out changeset 1ae40ac76cd0 (bug 1582530)
Backed out changeset 7fb765cb6727 (bug 1582530)
2019-09-27 04:02:33 +03:00
Tim Nguyen 9512989188 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-27 00:13:51 +00:00
Alexander Surkov b56e085e0c Bug 1584218 - form autofill and HTML:select don't respect ui.popup.disable_autohide preference r=emilio,MattN
Differential Revision: https://phabricator.services.mozilla.com/D47322

--HG--
extra : moz-landing-system : lando
2019-09-26 22:07:07 +00:00
Ting-Yu Lin df696cf9c1 Bug 1575054 - Disable column balancing for nested multicol containers of depth more than two. r=dbaron
That is, for the multicol container of depth two and more, we lay them
out by using "column-fill:auto" and "column-count:1".

I've check bug 725376 comment 9 for the previous approaches. Thanks to
bug 1555818, this solution is feasible because the fragmentation with
"column-fill:auto" is now possible.

Differential Revision: https://phabricator.services.mozilla.com/D47011

--HG--
extra : moz-landing-system : lando
2019-09-26 22:07:53 +00:00
Glenn Watson ab1041de89 Bug 1581757 - Support slicing the scene into an arbitrary number of picture cache slices r=nical,kvark
Previously, the setup_picture_caching function was hard coded
to support only a very specific shape of display list. With this
change, flags are added to PrimitiveCluster that can specify
if a picture cache slice should be created before / after this
cluster when picture caching is set up.

The usage of these flags in this patch matches the old behaviour,
so should not have any functional effect.

However, in future we will make use of this functionality to
create picture slices for a number of different use cases, such as:

 * Creating cache tiles for the UI.
 * Slicing the scene where there are video elements, in order to
   allow these to be composited directly by the OS. This may also
   apply to WebGL and/or canvas elements.
 * Slicing the scene when there is a very large fixed position
   background image or other element, to avoid invalidating the
   entire tile cache each frame.

Differential Revision: https://phabricator.services.mozilla.com/D46125

--HG--
extra : moz-landing-system : lando
2019-09-26 21:14:36 +00:00
Daniel Holbert 781eb25200 Bug 1584187: Pass an assertion-only variable to mozilla::Unused, to fix non-nightly opt build error. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D47319

--HG--
extra : moz-landing-system : lando
2019-09-26 21:11:33 +00:00
Lee Salzman 17ba335d48 Bug 1581735 - adjust fuzz for boxshadow-rotated.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47030

--HG--
extra : moz-landing-system : lando
2019-09-26 21:11:55 +00:00
Hiroyuki Ikezoe 258818e259 Bug 1536392 - Drop GeckoView checks for individual transform properties cases. r=boris
Now all test cases for individual transform properties work fine on GeckoView.

Depends on D47200

Differential Revision: https://phabricator.services.mozilla.com/D47201

--HG--
extra : moz-landing-system : lando
2019-09-26 21:01:30 +00:00
Hiroyuki Ikezoe 777658832e Bug 1536392 - Make the transform transition opposite direction of the translate transition to make sure the transformed results is inside the display port. r=boris
Differential Revision: https://phabricator.services.mozilla.com/D47200

--HG--
extra : moz-landing-system : lando
2019-09-26 21:01:26 +00:00
Emilio Cobos Álvarez aef57af453 Bug 1553772 - Bug 1549812 - Try to assert a bit harder about stuff not flushing under our nose. r=TYLin,mats
I think these should hold, everything that runs under them should just schedule
other stuff to some later date:

 * Synth mouse events -> scheduled as refresh driver observers.
 * Scroll events -> Scheduled as well.
 * Caret state change events -> Also scheduled after last patch.
 * IME and accessibility stuff -> I don't think they can reenter layout.

We can always revert this if it causes troubles, plus it shouldn't crash on
release so should be fine.

Differential Revision: https://phabricator.services.mozilla.com/D31090

--HG--
extra : moz-landing-system : lando
2019-09-26 20:55:58 +00:00
Emilio Cobos Álvarez d485264311 Bug 1553772 - Bug 1549812 - Don't run arbitrary script from AccessibleCaretManager callbacks. r=TYLin
Instead, post the event for the next turn of the event loop.

In this case, what killed the frame is ActionBarHandler.jsm via
Selection.toString().

Depends on D31088

Differential Revision: https://phabricator.services.mozilla.com/D31089

--HG--
extra : moz-landing-system : lando
2019-09-26 20:55:53 +00:00
Nathan Froyd c272af49a0 Bug 1583646 - make WebCryptoTask dispatch tasks to our background thread; r=keeler,jcj
Since background threads get shut down near `xpcom-shutdown-threads`,
there's no need to have `WebCryptoThreadPool` anymore; we can rely on
the background thread dispatching to fail to dispatch our task as
appropriate.

Differential Revision: https://phabricator.services.mozilla.com/D47006

--HG--
extra : moz-landing-system : lando
2019-09-26 20:47:31 +00:00
Coroiu Cristina b567839436 Backed out changeset e10a3c249943 (bug 1575054) for crashtest failures at reftest/tests/layout/generic/crashtests/812893.html on a CLOSED TREE 2019-09-27 00:16:47 +03:00
Brindusan Cristian bbe6450687 Backed out 3 changesets (bug 1582530) for crashtest failures on 360339-1.xul. CLOSED TREE
Backed out changeset 0d8d8016da4f (bug 1582530)
Backed out changeset deba67add7d2 (bug 1582530)
Backed out changeset b62377b233a8 (bug 1582530)
2019-09-26 22:52:22 +03:00
Emilio Cobos Álvarez 9dfc84144f Bug 1584285 - Add a pref to disable scroll anchoring suppression triggers on Nightly. r=dholbert
I think most of them should not be needed after bug 1561450. From our discussion
at TPAC in https://github.com/w3c/csswg-drafts/issues/4239, there should be no
reason not to do this unless we find fallout.

We need to enable the pref in tests that test these particular heuristics of
course.

Differential Revision: https://phabricator.services.mozilla.com/D47315

--HG--
extra : moz-landing-system : lando
2019-09-26 18:57:52 +00:00
Tim Nguyen a81dc42d42 Bug 1582530 - Fix crashtest failures. r=bustage on a CLOSED TREE 2019-09-26 12:00:11 -07:00
Ting-Yu Lin 1e019098f5 Bug 1575054 - Disable column balancing for nested multicol containers of depth more than two. r=dbaron
That is, for the multicol container of depth two and more, we lay them
out by using "column-fill:auto" and "column-count:1".

I've check bug 725376 comment 9 for the previous approaches. Thanks to
bug 1555818, this solution is feasible because the fragmentation with
"column-fill:auto" is now possible.

Differential Revision: https://phabricator.services.mozilla.com/D47011

--HG--
extra : moz-landing-system : lando
2019-09-24 21:38:00 +00:00
Tim Nguyen 7dac471890 Bug 1582530 - Fix remaining cases that were relying on blockification. r=dao
Differential Revision: https://phabricator.services.mozilla.com/D46676

--HG--
extra : moz-landing-system : lando
2019-09-26 17:19:15 +00:00
Geoff Brown 7d2245678c Bug 1583695 - Adjust Android test timeouts; r=bc
Change the taskcluster max-run-time for mochitests and reftests to use the
defaults, now that android tests no longer run anywhere near 7200 seconds.
(Also noticed some unrelated tc configuration that is obsolete - tidied that.)
Also remove the special 600 second reftest timeout for android debug reftests.

Differential Revision: https://phabricator.services.mozilla.com/D47301

--HG--
extra : moz-landing-system : lando
2019-09-26 17:03:18 +00:00
Frederic Wang 8bf77b9030 Bug 1548530 - Remove support for numalign/denomalign/align attributes. r=emilio
Intent to unship: https://groups.google.com/forum/#!topic/mozilla.dev.platform/JnJVGTmIwPE

- Introduce a new preference option mathml.deprecated_alignment_attributes.disabled()
  to disable alignment attributes for mfrac/munder/mover/munderover elements.
- Disable the attributes in Nightly and when running WPT tests.
- Enable the attributes in other channels but add a counter and deprecation warning.
- Remove failure expectation for WPT test frac-numalign-denomalign-001.html for mfrac
- Add new WPT test for underover-legacy-align-attribute-001.html for munder/mover/munderover
- Enable the attributes for MathML reftests checking these attributes.
- Disable numalign/denomalign test for Mochitest test_bug975681.html when the attributes
  are disabled.

Differential Revision: https://phabricator.services.mozilla.com/D46712

--HG--
extra : moz-landing-system : lando
2019-09-22 11:25:26 +00:00
arthur.iakab e51d7aeb78 Merge mozilla-central to autoland 2019-09-26 13:29:43 +03:00
Dorel Luca f1e99da78f Backed out changeset c2c9dbf826fe (bug 1581757) by dev's request 2019-09-26 12:37:59 +03:00
Makoto Kato 138c530bf4 Bug 1448730 - Long tap doesn't select word if tapped point isn't text. r=TYLin
Actually, Gecko's long tap implementation will select a word string near tapped
area even if tapped area isn't text.

Since Blink doesn't select it and user reports this issue via web compat, I
would not like to select text if tapped area isn't text.

Differential Revision: https://phabricator.services.mozilla.com/D46126

--HG--
extra : moz-landing-system : lando
2019-09-26 08:36:46 +00:00
Glenn Watson 2637b20d2f Bug 1581757 - Support slicing the scene into an arbitrary number of picture cache slices r=nical,kvark
Previously, the setup_picture_caching function was hard coded
to support only a very specific shape of display list. With this
change, flags are added to PrimitiveCluster that can specify
if a picture cache slice should be created before / after this
cluster when picture caching is set up.

The usage of these flags in this patch matches the old behaviour,
so should not have any functional effect.

However, in future we will make use of this functionality to
create picture slices for a number of different use cases, such as:

 * Creating cache tiles for the UI.
 * Slicing the scene where there are video elements, in order to
   allow these to be composited directly by the OS. This may also
   apply to WebGL and/or canvas elements.
 * Slicing the scene when there is a very large fixed position
   background image or other element, to avoid invalidating the
   entire tile cache each frame.

Differential Revision: https://phabricator.services.mozilla.com/D46125

--HG--
extra : moz-landing-system : lando
2019-09-25 20:38:42 +00:00
Lee Salzman 35231e20c2 Bug 1581334 - adjust fuzz for 456219-1ab.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47033

--HG--
extra : moz-landing-system : lando
2019-09-26 02:33:07 +00:00
Ting-Yu Lin 626ea340bc Bug 1583639 Part 4 - Stop creating more columns in column-fill:auto mode if there's still block-size left in multicol container. r=dbaron
This patch makes fragmentation in "column-fill:auto" mode possible.

Note that we only bail out of creating more column contents when
"column-fill:auto" mode is set from the styles, i.e. when mForceAuto is
false. That is because when mForceAuto is true, we usually in the case
where we have gave up balancing, and we really want to create overflow
columns.

Note: without `!aConfig.mForceAuto` check, 673770.html can generated
assertions, and the frame tree contains dangling Overflow-lines and
ExcessOverflowContainersList.

Differential Revision: https://phabricator.services.mozilla.com/D47005

--HG--
extra : moz-landing-system : lando
2019-09-25 23:36:41 +00:00
Ting-Yu Lin 771bb28447 Bug 1583639 Part 3 - Keep the optimal used numColumns in column-fill:auto mode without resetting it to INT32_MAX. r=dbaron
mUsedColCount is used in balancing mode to check whether we have created
the maximum number of columns when the content cannot fit. Similarly,
mUsedColCount can also be useful in "column-fill:auto" mode to improve
the fragmentation story in the next patch.

This patch doesn't change the behavior (yet).

Differential Revision: https://phabricator.services.mozilla.com/D47004

--HG--
extra : moz-landing-system : lando
2019-09-25 06:41:10 +00:00
Ting-Yu Lin fd1d19e6aa Bug 1583639 Part 2 - Rename mBalanceColCount to mUsedColCount in nsColumnSetFrame::ReflowConfig. r=dbaron
In next patch, this variable won't be set to INT32_MAX in
"column-fill:auto" mode, and it will be used in Part 4. Hence the
rename.

Differential Revision: https://phabricator.services.mozilla.com/D47003

--HG--
extra : moz-landing-system : lando
2019-09-25 06:43:19 +00:00
Ting-Yu Lin eded32bd45 Bug 1583639 Part 1 - De-indent an else-block inside the while-loop in nsColumnSetFrame::ReflowChild. r=dbaron
The associated if-block has a "break" statement at the end of the scope
to break the while-loop, making the else-block redundant.

Differential Revision: https://phabricator.services.mozilla.com/D47002

--HG--
extra : moz-landing-system : lando
2019-09-24 21:09:20 +00:00
Lee Salzman 3802e22be1 Bug 1582758 - adjust fuzz for svg-as-border-image-4b.html. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D47029

--HG--
extra : moz-landing-system : lando
2019-09-26 02:30:53 +00:00
Daniel Holbert 8c18bcd991 Bug 1582819: Add diagnostic assert to catch positioned elements with display:-moz-box or -moz-inline-box that were previously blockified to 'block' but won't be anymore. r=mats
Differential Revision: https://phabricator.services.mozilla.com/D46681

--HG--
extra : moz-landing-system : lando
2019-09-25 20:38:55 +00:00
Andreea Pavel 9fd779e03f Merge mozilla-central to autoland on a CLOSED TREE 2019-09-26 01:00:14 +03:00
Emilio Cobos Álvarez 161cb16ca8 Bug 1551659 - Remove MVMContext::ResizeEventFlag and related code. r=botond,hiro
D46944 / bug 1583534 is what fixes the root cause of bug 1528052 by not
having the first call to ResizeReflow have a wrong old size of 0x0.

This removes the code that bug introduces to suppress resize events, which
fixes this bug. I think our behavior now is pretty sane.

In particular, consider the test-case:

<!doctype html>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<a href="" target="_blank">Open me in a separate tab</a>
<pre id="log"></pre>
<script>
  // This shouldn't be needed, but otherwise Fenix doesn't show the tooltip on
  // longpress...
  document.querySelector("a").href = location.href;

  function logSize() {
    log.innerText += window.innerWidth + "x" + window.innerHeight + "\n";
  }
  logSize();
  onresize = logSize;
</script>

(Hosted at https://crisal.io/tmp/gecko-mobile-resize.html for convenience)

Right now on trunk, when you click the link from GVE or Fenix, we're only
getting an initial size of 0x0 (which is not great, btw), and only after first
paint we get the real device size, but content doesn't get a resize event.

This is obviously wrong, every time the layout viewport changes we should fire
resize events.

Pages that get opened in new tabs and get refreshed when resized may get an
extra reload with this approach, but this seems not avoidable unless widget sets
the viewport size right in advance (which from discussion with snorp and agi
doesn't seem possible in the general case).

What used to happen is that we were triggering a redundant resize reflow from
the initial paint which didn't update the layout viewport (because the content
viewer and co had the right viewport from the previous navigation).

Now that we optimize those away, I think our behavior should be correct.

Differential Revision: https://phabricator.services.mozilla.com/D46956

--HG--
extra : moz-landing-system : lando
2019-09-25 19:35:29 +00:00
Emilio Cobos Álvarez 848d89d65f Bug 1583534 - Further simplify PresShell::ResizeReflow. r=botond
In particular, not let ResizeReflow take the old and new size. Most of the
callers pass dummy values anyway.

Instead, use the old size of the layout viewport. This ensures we fire resize
events only if the layout viewport actually changes.

This is important because the first resize of the mobile viewport manager
after a navigation has an "old size" of 0x0, even though the layout viewport
is initialized on presshell initialization to the right size.

Thus, we fire resize events unnecessarily in that case, which is the root cause
for bug 1528052.

To do this, we need to shuffle a bit of code in nsDocumentViewer that deals with
delayed resizes, to set the visible area _and_ invalidate layout, rather than
setting the visible area and _then_ relying on doing a resize reflow.

Further cleanup is possible, though not required for my android resizing fix, so
will do separately.

Differential Revision: https://phabricator.services.mozilla.com/D46944

--HG--
extra : moz-landing-system : lando
2019-09-25 19:12:44 +00:00