Commit Graph

33537 Commits

Author SHA1 Message Date
Hiroyuki Ikezoe
f2920c13d8 Bug 1551806 - Don't try to snap if there is no valid snap positions for the scroll-snap v1 implementation. r=botond
From the spec [1];
  If a valid snap position exists then the scroll container must snap at the
  termination of a scroll (if none exist then no snapping occurs).


Both of test cases in this commit fail without this change.

[1] https://drafts.csswg.org/css-scroll-snap-1/#valdef-scroll-snap-type-mandatory

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

--HG--
extra : moz-landing-system : lando
2019-05-17 20:50:24 +00:00
Bastien Orivel
cf92185937 Bug 1550903 - Part 1: Update ws to 0.8. r=emilio
This is part of the effort to get all the other versions of rand out.
Unfortunately the diff is kinda bug because this is the first crate
requiring rand 0.6 which has been split into multiple crates.

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

--HG--
extra : moz-landing-system : lando
2019-05-18 21:30:23 +00:00
Miko Mynttinen
049dbbcc2c Bug 1529698 - Part 4: Add nsDisplayContainer r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D30840

--HG--
extra : moz-landing-system : lando
2019-05-18 20:11:42 +00:00
Miko Mynttinen
454b6b9b8c Bug 1529698 - Part 2: Move BuildLayer() to nsPaintedDisplayItem r=mattwoodrow
Differential Revision: https://phabricator.services.mozilla.com/D30838

--HG--
extra : moz-landing-system : lando
2019-05-18 20:11:18 +00:00
Kartikaya Gupta
e089e9f404 Bug 1550510 - Stop hoisting scrollinfo items inside filters when WR is enabled. r=botond
In bug 1527182 we made it so that APZ can directly drag-scroll scrollframes
that are inside SVG effects, because that's possible with WR on the compositor.
However the code changed in that bug was meant to be kept in sync with
a second piece of code. The second piece of code controls the generation
of ScrollInfo items for scrollframes inside SVG effects - since we can
APZ-scroll them with WR, we don't need the scrollinfo item anymore.
Producing the scrollinfo item was changing the structure of the APZ tree
in terms of where the transform ended up, and was causing badness with
untransforming the drag mouse events.

This patch adds a test that covers the scenario and also corrects the defect
by bringing the two bits of code back in sync.

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

--HG--
extra : moz-landing-system : lando
2019-05-18 00:17:50 +00:00
shindli
caf77278c5 Merge mozilla-central to inbound. a=merge CLOSED TREE 2019-05-17 19:38:09 +03:00
thomasmo
5436d3561e Bug 1550757 - Create new DLL for sharing VR code r=kip
This change introduces a new dll, vrhost, to make it easier to share
VR code across multiple process.
An executable, vrtesthost, is also added for testing purposes to
validate the DLL loads in a minimal environment.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 04:53:16 +00:00
Jeff Gilbert
7c1b76c6a8 Bug 1526027 - Remove webgl.bypass-shader-validation. r=lsalzman
Also remove extra plumbing from WebGLShaderValidator, moved directly
into WebGLShader.

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

--HG--
extra : moz-landing-system : lando
2019-05-17 02:36:57 +00:00
arthur.iakab
93aedcdbe3 Backed out 2 changesets (bug 1550903) for causing multiple build bustages CLOSED TREE
Backed out changeset d62be51ffad3 (bug 1550903)
Backed out changeset f48939dc27b6 (bug 1550903)

--HG--
rename : third_party/rust/rand-0.4.3/appveyor.yml => third_party/rust/rand/appveyor.yml
rename : third_party/rust/rand-0.4.3/benches/bench.rs => third_party/rust/rand/benches/bench.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/exponential.rs => third_party/rust/rand/benches/distributions/exponential.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/gamma.rs => third_party/rust/rand/benches/distributions/gamma.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/mod.rs => third_party/rust/rand/benches/distributions/mod.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/normal.rs => third_party/rust/rand/benches/distributions/normal.rs
rename : third_party/rust/rand-0.4.3/src/distributions/range.rs => third_party/rust/rand/src/distributions/range.rs
rename : third_party/rust/rand_jitter/src/lib.rs => third_party/rust/rand/src/jitter.rs
rename : third_party/rust/rand-0.4.3/src/os.rs => third_party/rust/rand/src/os.rs
rename : third_party/rust/rand-0.4.3/src/prng/chacha.rs => third_party/rust/rand/src/prng/chacha.rs
rename : third_party/rust/rand-0.4.3/src/prng/isaac.rs => third_party/rust/rand/src/prng/isaac.rs
rename : third_party/rust/rand-0.4.3/src/prng/isaac64.rs => third_party/rust/rand/src/prng/isaac64.rs
rename : third_party/rust/rand-0.4.3/src/prng/xorshift.rs => third_party/rust/rand/src/prng/xorshift.rs
rename : third_party/rust/rand-0.4.3/src/rand_impls.rs => third_party/rust/rand/src/rand_impls.rs
rename : third_party/rust/rand-0.4.3/src/read.rs => third_party/rust/rand/src/read.rs
rename : third_party/rust/rand-0.4.3/src/reseeding.rs => third_party/rust/rand/src/reseeding.rs
rename : third_party/rust/rand-0.4.3/src/seq.rs => third_party/rust/rand/src/seq.rs
rename : third_party/rust/rand-0.4.3/utils/ziggurat_tables.py => third_party/rust/rand/utils/ziggurat_tables.py
rename : third_party/rust/fuchsia-cprng/LICENSE => third_party/rust/sha1/LICENSE
2019-05-17 03:24:33 +03:00
Bastien Orivel
f75d160ef4 Bug 1550903 - Part 1: Update ws to 0.8. r=emilio
This is part of the effort to get all the other versions of rand out.
Unfortunately the diff is kinda bug because this is the first crate
requiring rand 0.6 which has been split into multiple crates.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 17:38:14 +00:00
Emilio Cobos Álvarez
835de4b08d Bug 1529002 - Use cbindgen to back CSS transforms. r=boris
This avoids the expensive conversion, and cleans up a bunch.

Further cleanup is possible, just not done yet to avoid growing the patch even
more.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 23:25:10 +00:00
Glenn Watson
7690d772ae Bug 1552084 - Remove lifetime requirements on DrawTarget and ReadTarget in WR. r=emilio
This makes DrawTarget and ReadTarget no longer require a borrow
on a texture. This was previously fine, but in the near future
WR will be rendering picture caching surfaces directly into
texture handles. To allow this, we need to remove the borrow check
requirement on DrawTarget for rustc.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 22:25:35 +00:00
Csoregi Natalia
60874606d0 Merge mozilla-central to autoland. CLOSED TREE 2019-05-17 00:58:59 +03:00
Barret Rennie
082f51372d Bug 1540521 - Only attempt to set the CompositionRecorder on the LayerManager when there is one r=mstange
The CompositorBridgeParent won't have a LayerManager when running with
WebRender, so attempting to take a composition recording will cause a crash. We
now silently fail to take the recording since recording is not supported on Web
Render.

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

--HG--
extra : moz-landing-system : lando
2019-05-16 17:26:19 +00:00
Nicolas Silva
cc8b7cf247 Bug 1551187 - Rename DropShadowStack into DropShadows. r=kvark"
Differential Revision: https://phabricator.services.mozilla.com/D31248

--HG--
extra : source : fec43bfabf433e3df38114cc172c43d3d9e805d6
2019-05-15 15:21:53 +02:00
Ciure Andrei
00a73f5055 Backed out 17 changesets (bug 1550554, bug 1549593, bug 1551991, bug 1529002) for failing multiple Android tests and Windows 2012 bustages CLOSED TREE
Backed out changeset 3bb3fafa62e2 (bug 1551991)
Backed out changeset e12a979de502 (bug 1551991)
Backed out changeset d81e4aa6bf0c (bug 1551991)
Backed out changeset c354e61f2a34 (bug 1551991)
Backed out changeset 37fd602bebc2 (bug 1551991)
Backed out changeset 6c1f00cc30ca (bug 1551991)
Backed out changeset 8a7a0329bdc3 (bug 1551991)
Backed out changeset 86159475ddd3 (bug 1551991)
Backed out changeset 35f91a9ea82a (bug 1529002)
Backed out changeset 6798155e71dc (bug 1529002)
Backed out changeset b90c2cf5b8c5 (bug 1550554)
Backed out changeset 882ab9868c95 (bug 1550554)
Backed out changeset b28a48e2ed21 (bug 1550554)
Backed out changeset 2c31fe18eefd (bug 1550554)
Backed out changeset 57f2362aa538 (bug 1550554)
Backed out changeset 45f171b26e95 (bug 1550554)
Backed out changeset 2e4b263c9410 (bug 1549593)
2019-05-16 13:17:10 +03:00
Emilio Cobos Álvarez
5804e8efae Bug 1529002 - Use cbindgen to back CSS transforms. r=boris
This avoids the expensive conversion, and cleans up a bunch.

Further cleanup is possible, just not done yet to avoid growing the patch even
more.

Differential Revision: https://phabricator.services.mozilla.com/D30748
2019-05-16 16:24:38 +02:00
Botond Ballo
f638ab1178 Bug 1552040 - Make layout.scroll.root-frame-containers a regular (not override) pref. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D31350

--HG--
extra : moz-landing-system : lando
2019-05-16 01:07:41 +00:00
sotaro
f1e8518196 Bug 1551792 - Add override to RenderCompositorANGLE::UseTripleBuffering() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D31194

--HG--
extra : moz-landing-system : lando
2019-05-15 16:32:25 +00:00
Lee Salzman
0ab44c22e7 Bug 1533546 - disable Skia's global DWrite lock on Windows 10. r=jrmuizel
Differential Revision: https://phabricator.services.mozilla.com/D31328

--HG--
extra : moz-landing-system : lando
2019-05-15 21:23:23 +00:00
Kartikaya Gupta
0f392e1c84 Bug 1551611 - Skip subpixel AA tests on macOS 10.14. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D31183

--HG--
extra : moz-landing-system : lando
2019-05-15 15:12:40 +00:00
Kartikaya Gupta
5276a16758 Bug 1551611 - Add macOS version information to the ReftestEnvironment. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D31182

--HG--
extra : moz-landing-system : lando
2019-05-15 15:10:51 +00:00
Kartikaya Gupta
1ba5b82de1 Bug 1551611 - Introduce a ReftestEnvironment. r=Gankro
This moves the existing constants into a ReftestEnvironment which
encapsulates it a bit better. Also this fixes the incorrect "debug" cfg
check to "debug_assertions" which is more correct.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 15:10:34 +00:00
Bogdan Tara
c818e16da7 Backed out 3 changesets (bug 1551611) for tidy bustage CLOSED TREE
Backed out changeset f60b2e760d1a (bug 1551611)
Backed out changeset 85ac4e68a63e (bug 1551611)
Backed out changeset df4a76b3e6ce (bug 1551611)
2019-05-15 18:00:25 +03:00
Kartikaya Gupta
88574ada2a Bug 1551611 - Skip subpixel AA tests on macOS 10.14. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D31183

--HG--
extra : moz-landing-system : lando
2019-05-15 14:06:52 +00:00
Kartikaya Gupta
a30b01108f Bug 1551611 - Add macOS version information to the ReftestEnvironment. r=Gankro
Differential Revision: https://phabricator.services.mozilla.com/D31182

--HG--
extra : moz-landing-system : lando
2019-05-15 14:39:39 +00:00
Kartikaya Gupta
b8b7813c1c Bug 1551611 - Introduce a ReftestEnvironment. r=Gankro
This moves the existing constants into a ReftestEnvironment which
encapsulates it a bit better. Also this fixes the incorrect "debug" cfg
check to "debug_assertions" which is more correct.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 14:06:33 +00:00
Bogdan Tara
9f71a4be73 Backed out 3 changesets (bug 1551187) for webrender bustages CLOSED TREE
Backed out changeset 333943819087 (bug 1551187)
Backed out changeset dc83934fa032 (bug 1551187)
Backed out changeset aa02e32fd5bf (bug 1551187)
2019-05-15 16:54:37 +03:00
Nicolas Silva
3d005bdb41 Bug 1551187 - Box the color matrix in Filter. r=kvark
ColorMatrix is rarely used but takes most space in the Filter enum.
This removes 44 bytes from the enum and all structs that embed it.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 13:15:55 +00:00
Nicolas Silva
0068db5320 Bug 1551187 - Rename render task tree into render task graph. r=kvark
sed -i 's/RenderTaskTree/RenderTaskGraph/g' gfx/wr/webrender/**/*.rs
sed -i 's/task tree/task graph/g' gfx/wr/webrender/**/*.rs

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

--HG--
extra : moz-landing-system : lando
2019-05-15 13:16:17 +00:00
Nicolas Silva
caf7e58ba1 Bug 1551187 - Remove the single-shadow picture composite code. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D30896

--HG--
extra : moz-landing-system : lando
2019-05-15 13:16:19 +00:00
Jamie Nicol
49dbdb7f53 Bug 1550582 - Add wrench reftest r=gw
Rename the old overlapping corners testcase and add comments to make
the tests' purposes clearer:
 * The existing one is testing that a corner is clipped correctly when
   it overlaps with an adjacent corner.
 * The new one is testing that corners and segments are clipped
   correctly when opposite edges of the border overlap.

Depends on D30814

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

--HG--
rename : gfx/wr/wrench/reftests/border/border-overlapping-ref.yaml => gfx/wr/wrench/reftests/border/border-overlapping-corner-ref.yaml
rename : gfx/wr/wrench/reftests/border/border-overlapping.yaml => gfx/wr/wrench/reftests/border/border-overlapping-corner.yaml
extra : moz-landing-system : lando
2019-05-15 10:45:25 +00:00
Jamie Nicol
318728e2ed Bug 1550582 - Ensure the overlap is filled correctly when opposite border edges overlap. r=gw
To fix bug 1496540 it was made so that webrender clips border corner
segments so that they do not overlap with their opposing
edges. However, cases where opposing _edges_ both overlap with
eachother (rather than just a corner overlapping with an edge), the
corners are clipped too far and a gap is left in the middle.

Additionally, no clipping was added to the edge segments. So rather
than there be a gap there is an area that is painted twice, which is
apparent if the colour is semi-transparent.

This fixes these issues by identifying when opposing edges overlap and
calculating the midpoint, then clipping the edges and corners to that
midpoint instead.

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

--HG--
extra : moz-landing-system : lando
2019-05-15 10:43:25 +00:00
Bogdan Tara
11cfa0462a Backed out changeset af0fd51dc41a (bug 1550757) for vrhost related mingw bustages CLOSED TREE 2019-05-15 08:28:00 +03:00
thomasmo
67eb9799f5 Bug 1550757 - Create new DLL for sharing VR code r=kip
This change introduces a new dll, vrhost, to make it easier to share
VR code across multiple process.
An executable, vrtesthost, is also added for testing purposes to
validate the DLL loads in a minimal environment.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 18:07:26 +00:00
Barret Rennie
1a5e406183 Bug 1551353 - Correctly map PBOs for readback on GLES r=kvark
The implementation of `Device::map_pbo_for_readback` on GLES (e.g., Windows
with ANGLE) was using the incorrect enumeration value when attempting to map
the buffer into memory.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 22:54:19 +00:00
Lee Salzman
7e2009d661 Bug 1508626 - add assertions to diagnose why the font loader is running after shutdown. r=jfkthame
Differential Revision: https://phabricator.services.mozilla.com/D30979

--HG--
extra : moz-landing-system : lando
2019-05-14 16:14:26 +00:00
Cosmin Sabou
1b1356216c Merge mozilla-inbound to mozilla-central. a=merge 2019-05-14 18:59:38 +03:00
sotaro
5195dc0de7 Bug 1551392 - Remove RenderThread::DecPendingFrameCount() r=nical
Differential Revision: https://phabricator.services.mozilla.com/D31021

--HG--
extra : moz-landing-system : lando
2019-05-14 07:18:03 +00:00
Glenn Watson
5108fcd99f Bug 1551131 - Refactor WR batching code in preparation for different batches per dirty region / render task. r=nical
* Store render task address per-instance rather than per-primitive, to allow adding a single primitive to multiple batches / render tasks.
* Store render task id inside alpha batch builder, since multiple batch builders will be passed in future.
* Add primitive visibility mask, storing a bit mask of which dirty regions a visible primitive intersects.
* Store RenderTaskAddress as a u16 in CPU and shader types.
* Add picture caching debug flag to wrench.

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

--HG--
extra : moz-landing-system : lando
2019-05-14 07:17:24 +00:00
Cosmin Sabou
2c257bbf35 Merge mozilla-central to autoland. 2019-05-14 08:25:39 +03:00
Cosmin Sabou
530b9c7e9c Backed out 2 changesets (bug 1550903) for webrender bustages. a=backout
Backed out changeset fe8d48740511 (bug 1550903)
Backed out changeset cc187a665ccf (bug 1550903)

--HG--
rename : third_party/rust/rand-0.4.3/appveyor.yml => third_party/rust/rand/appveyor.yml
rename : third_party/rust/rand-0.4.3/benches/bench.rs => third_party/rust/rand/benches/bench.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/exponential.rs => third_party/rust/rand/benches/distributions/exponential.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/gamma.rs => third_party/rust/rand/benches/distributions/gamma.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/mod.rs => third_party/rust/rand/benches/distributions/mod.rs
rename : third_party/rust/rand-0.4.3/benches/distributions/normal.rs => third_party/rust/rand/benches/distributions/normal.rs
rename : third_party/rust/rand-0.4.3/src/distributions/range.rs => third_party/rust/rand/src/distributions/range.rs
rename : third_party/rust/rand_jitter/src/lib.rs => third_party/rust/rand/src/jitter.rs
rename : third_party/rust/rand-0.4.3/src/os.rs => third_party/rust/rand/src/os.rs
rename : third_party/rust/rand-0.4.3/src/prng/chacha.rs => third_party/rust/rand/src/prng/chacha.rs
rename : third_party/rust/rand-0.4.3/src/prng/isaac.rs => third_party/rust/rand/src/prng/isaac.rs
rename : third_party/rust/rand-0.4.3/src/prng/isaac64.rs => third_party/rust/rand/src/prng/isaac64.rs
rename : third_party/rust/rand-0.4.3/src/prng/xorshift.rs => third_party/rust/rand/src/prng/xorshift.rs
rename : third_party/rust/rand-0.4.3/src/rand_impls.rs => third_party/rust/rand/src/rand_impls.rs
rename : third_party/rust/rand-0.4.3/src/read.rs => third_party/rust/rand/src/read.rs
rename : third_party/rust/rand-0.4.3/src/reseeding.rs => third_party/rust/rand/src/reseeding.rs
rename : third_party/rust/rand-0.4.3/src/seq.rs => third_party/rust/rand/src/seq.rs
rename : third_party/rust/rand-0.4.3/utils/ziggurat_tables.py => third_party/rust/rand/utils/ziggurat_tables.py
rename : third_party/rust/fuchsia-cprng/LICENSE => third_party/rust/sha1/LICENSE
2019-05-14 08:16:26 +03:00
Bastien Orivel
4816d6ec16 Bug 1550903 - Part 1: Update ws to 0.8. r=emilio
This is part of the effort to get all the other versions of rand out.
Unfortunately the diff is kinda bug because this is the first crate
requiring rand 0.6 which has been split into multiple crates.

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

--HG--
extra : moz-landing-system : lando
2019-05-12 12:38:56 +00:00
Jeff Muizelaar
e31b715a96 Bug 1551257. Enable WebRender by default on Broadwell GT2+. r=aosmond
I think we just accidentally forgot these ids when we added more mobile
chips.

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

--HG--
extra : moz-landing-system : lando
2019-05-13 16:43:52 +00:00
Botond Ballo
bf20fd9f38 Bug 1459260 - Don't use dom.meta-viewport.enabled in tests that don't need it. r=kats
Many tests only had it enabled because it was required for zooming to work on
desktop. This patch revises tests to only use it if they actually use a non-
default meta viewport tag.

The motivation is to bring test coverage closer to the platform defaults (so
on desktop, tests will run with dom.meta-viewport.enabled=false, and on Android
with dom.meta-viewport.enabled=true, matching the production scenarios).

Depends on D30988

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

--HG--
extra : moz-landing-system : lando
2019-05-14 02:15:09 +00:00
Martin Stransky
72f8b4fbe9 Bug 1550658 - [Linux/Gtk] Don't use Wayland display in content process when it's disabled in chrome, r=sotaro
Differential Revision: https://phabricator.services.mozilla.com/D30724

--HG--
extra : moz-landing-system : lando
2019-05-13 11:19:41 +00:00
sotaro
d340b3064c Bug 1536668 - Add more check to RecvGetTextureFactoryIdentifier() r=nical
Add a check similar to LayerTransactionParent::RecvSetAsyncZoom()

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

--HG--
extra : moz-landing-system : lando
2019-05-09 07:37:03 +00:00
sotaro
30138cb347 Bug 1550402 - Remove unnecessary return nullptr in ShmemTextureData::Create() r=nical
The "return nullptr" is redundant.

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

--HG--
extra : moz-landing-system : lando
2019-05-09 07:36:40 +00:00
Nicolas Silva
92e099dc31 Bug 1536021 - Gecko side changes. r=kvark
Differential Revision: https://phabricator.services.mozilla.com/D30618

--HG--
extra : source : d9c8971de6ad11a2f5c4331775c2d17c98a12b7e
extra : intermediate-source : b0fc3130f34b72fe01230ae0b231131111a9a9f1
2019-05-10 22:13:31 +02:00
Nicolas Silva
ea0c5eda0a Bug 1536021 - Sanitize filters in place. r=kvark
--HG--
extra : source : d68b728d584c38053387c4df0096a9744389469f
extra : intermediate-source : 4e52aa850e3607ffe872a8da66874eaddefea046
2019-05-10 01:23:54 +02:00