Commit Graph

30949 Commits

Author SHA1 Message Date
Jeff Muizelaar
0640ea80fb Bug 1493473. Update webrender to 4e7d0ed1b08f5402a6971230864a7e497b2453ec 2018-09-22 23:11:30 -04:00
Jeff Muizelaar
24fdba412e Bug 1493268. Re-generate FFI header and adjust bindings.
Changes GlyphRasterSpace to RasterSpace.
2018-09-22 21:19:52 -04:00
Jeff Muizelaar
194dc0ec33 Bug 1493268. Update webrender to commit 3f6016fbb6fb93b2f1fc7046bce186555ca836f3 2018-09-22 21:18:41 -04:00
Jonathan Kew
1866f4c3a7 Bug 1493418 - nsThebesFontEnumerator needs to convert font names from UTF-8 (not Latin-1) to UTF-16. r=lsalzman 2018-09-22 23:29:22 +01:00
Jeff Muizelaar
8d0131224b Bug 1490033. Use IsStyleMaybeAnimated to set up snapping surface transform. r=mstange
This catches all animations instead of those that only run on the compositor.

Differential Revision: https://phabricator.services.mozilla.com/D6543
2018-09-21 23:28:34 -04:00
Jeff Muizelaar
c53343f961 Bug 1491590. Make sure that the paint rect is set to the bounds. r=mstange
This prevents us from doing unnecessary drawing because we clip to
the bounds of the item.

Differential Revision: https://phabricator.services.mozilla.com/D6428
2018-09-21 18:53:41 -04:00
Jeff Muizelaar
90fbfc8d8a Bug 1447880. Paint nsDisplayMasks directly instead of using a BasicLayerManager. r=mstange
This allows us to invalidate individual items inside of the mask instead of
treating the mask and it's children as a single item.

Differential Revision: https://phabricator.services.mozilla.com/D6224
2018-09-21 18:50:23 -04:00
Jeff Muizelaar
f2485f9b16 Bug 1447880. Allow PaintMaskAndClipPath to support different ways of painting its children. r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6223
2018-09-21 18:50:08 -04:00
Jeff Muizelaar
e6183a10a0 Bug 1447880. Handle inactive 3d transforms. r=mstange
It isn't possible to trigger this code currently because
the only way to have an inactive 3d transform is with a mask
or filter item and those get handled with a BasicLayerManager.

This becomes necessary once we handle mask items internally.

Differential Revision: https://phabricator.services.mozilla.com/D6222
2018-09-21 18:49:32 -04:00
Bogdan Tara
3e0d3c693c Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-09-22 01:06:13 +03:00
Bobby Holley
2a7a7feb5f Bug 1492263 - Add more memory reporters. r=gw
Reviewers: gw

Tags: #secure-revision

Bug #: 1492263

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

MozReview-Commit-ID: 7uGxPsbMkaf
2018-09-21 14:59:10 -07:00
Jeff Muizelaar
52d34517db Bug 1493097. Re-generate FFI header
--HG--
extra : rebase_source : abe143f7864541645763c9fa1afbdf251f223b89
2018-09-21 15:40:34 -04:00
Jeff Muizelaar
d7b9762836 Bug 1493097. Update webrender to commit 97a3807ea8266c324feb3ecada2ac5fd78c80e9b
--HG--
extra : rebase_source : c01507424aa77d0f21fc25218f10c19309e8b6ba
2018-09-21 15:36:53 -04:00
Jeff Muizelaar
b1a30b1cb4 Bug 1492615. Improve logging even more r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6432

--HG--
extra : moz-landing-system : lando
2018-09-21 12:56:53 +00:00
Brindusan Cristian
57067c9ef0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-21 20:31:41 +03:00
Botond Ballo
0719570507 Bug 1457603 - Downgrade the diagnostic assert in InputBlockState::SetConfirmedTargetApzc() to a regular assert. r=kats
As explained in the bug, it has been difficult ot find reliable STR for
the diagnostic assert, and it has been impacting the stability and usability
of Nightly builds.

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

--HG--
extra : moz-landing-system : lando
2018-09-21 17:18:52 +00:00
Ryan Hunt
6278da4916 Bug 1486959 - Remove bogus assertion in ContentClient. r=nical
It's possible to trigger this assertion with asyncPaint = true and
bufferRotation != (0, 0). In this case though everything should work fine,
because we didn't start a new paint task, and we should be able to copy over
buffers. So we should be able to remove this assertion.

--HG--
extra : amend_source : d4cb9eddf48e08446469d2e1891f0e9ed3bb85d0
2018-09-20 10:54:19 -05:00
Emilio Cobos Álvarez
f7c1f3b135 Bug 1470440: Add a crashtest. r=me 2018-09-21 15:29:49 +02:00
Zibi Braniecki
83ea94f5ba Bug 1491394 - Update callsites to use new mozILocaleService API. r=jfkthame
Depends on D5924

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

--HG--
extra : moz-landing-system : lando
2018-09-21 15:30:37 +00:00
Gurzau Raul
9c1ca9e6e7 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-21 07:17:03 +03:00
Gurzau Raul
b1522a7bf0 Merge inbound to mozilla-central. a=merge 2018-09-21 07:13:51 +03:00
Jeff Muizelaar
341b1c6aee Bug 1492880. Re-generate FFI header 2018-09-20 23:30:03 -04:00
Jeff Muizelaar
bb303b7ca0 Bug 1492880. Update webrender to commit a601f9c291cee83257241ef61aaf62353c613438 2018-09-20 23:27:49 -04:00
Andrew Osmond
c5be5d2b08 Bug 1492925 - Ensure we release the shared surfaces when a WebRender pipeline is removed. r=sotaro 2018-09-20 21:27:50 -04:00
Andrew Osmond
5f4c3fc4b2 Bug 1456558 - Part 2. Implement factor of 2 scaling support for SVGs in the surface cache. r=tnikkel
There is one main difference between raster images and vector images
with respect to factor of 2 scaling. Vector images may be scaled
infinitely and so we need to extend factor of 2 scaling to permit
growing instead of just shrinking. Also, we don't want to scale
infinitely, so we should configure a maximum size limit. This size limit
will apply even outside of factor of 2 scaling, and so the caller
(VectorImage) will need to be careful to take this into account.
2018-09-20 20:22:03 -04:00
Andreea Pavel
3805f6a285 Backed out 3 changesets (bug 1456558) for crashtest assertion failures on a CLOSED TREE
Backed out changeset 70d8f11cf6e8 (bug 1456558)
Backed out changeset af9fc3daf97c (bug 1456558)
Backed out changeset f209a9d848f4 (bug 1456558)
2018-09-21 02:13:41 +03:00
Andrew Osmond
f799e4bd72 Bug 1456558 - Part 2. Implement factor of 2 scaling support for SVGs in the surface cache. r=tnikkel
There is one main difference between raster images and vector images
with respect to factor of 2 scaling. Vector images may be scaled
infinitely and so we need to extend factor of 2 scaling to permit
growing instead of just shrinking. Also, we don't want to scale
infinitely, so we should configure a maximum size limit. This size limit
will apply even outside of factor of 2 scaling, and so the caller
(VectorImage) will need to be careful to take this into account.
2018-09-20 18:15:32 -04:00
Nathan Froyd
e7b3b3140d Bug 1415980 - make hash keys movable and not copyable; r=erahm
Everything that goes in a PLDHashtable (and its derivatives, like
nsTHashtable) needs to inherit from PLDHashEntryHdr. But through a lack
of enforcement, copy constructors for these derived classes didn't
explicitly invoke the copy constructor for PLDHashEntryHdr (and the
compiler didn't invoke the copy constructor for us). Instead,
PLDHashTable explicitly copied around the bits that the copy constructor
would have.

The current setup has two problems:

1) Derived classes should be using move construction, not copy
   construction, since anything that's shuffling hash table keys/entries
   around will be using move construction.

2) Derived classes should take responsibility for transferring bits of
   superclass state around, and not rely on something else to handle that.

The second point is not a huge problem for PLDHashTable (PLDHashTable
only has to copy PLDHashEntryHdr's bits in a single place), but future
hash table implementations that might move entries around more
aggressively would have to insert compensation code all over the
place. Additionally, if moving entries is implemented via memcpy (which
is quite common), PLDHashTable copying around bits *again* is
inefficient.

Let's fix all these problems in one go, by:

1) Explicitly declaring the set of constructors that PLDHashEntryHdr
   implements (and does not implement). In particular, the copy
   constructor is deleted, so any derived classes that attempt to make
   themselves copyable will be detected at compile time: the compiler
   will complain that the superclass type is not copyable.

This change on its own will result in many compiler errors, so...

2) Change any derived classes to implement move constructors instead of
   copy constructors. Note that some of these move constructors are,
   strictly speaking, unnecessary, since the relevant classes are moved
   via memcpy in nsTHashtable and its derivatives.
2018-09-20 11:20:36 -04:00
Jeff Muizelaar
31e8ed30f0 Bug 1492566. Update webrender to f17f6a491d6ff3dc3e13e998dda788d8f5856338 2018-09-20 11:05:20 -04:00
Margareta Eliza Balazs
9a7413349e Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-09-20 16:31:54 +03:00
Margareta Eliza Balazs
92be42b8f3 Merge inbound to mozilla-central. a=merge 2018-09-20 16:24:21 +03:00
Jonathan Kew
1b456cbb54 Bug 1492518 - Remove 16-bit version of GenerateFontListKey, no longer used anywhere. r=lsalzman 2018-09-20 14:23:26 +01:00
Andreea Pavel
c8f8e2da0d Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-09-21 01:00:46 +03:00
Jeff Muizelaar
982a5601bf Bug 1492615. Improve logging of blob property changes r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6342

--HG--
extra : moz-landing-system : lando
2018-09-20 20:14:23 +00:00
Coroiu Cristina
b287d5ad06 Merge mozilla-central to autoland a=merge 2018-09-20 09:52:11 +03:00
Coroiu Cristina
0b8ed772d2 Backed out 2 changesets (bug 1492389) for causing perma reftest failures at tests/reftest/tests/layout/reftests/transform-3d/1035611-1-ref.html a=backout
Backed out changeset 16995931c819 (bug 1492389)
Backed out changeset 592121f27afe (bug 1492389)
2018-09-20 09:47:22 +03:00
Bogdan Tara
86023d88c4 Merge inbound to mozilla-central. a=merge 2018-09-20 07:13:05 +03:00
Bogdan Tara
0a366c8ced Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-09-20 07:15:43 +03:00
Cameron McCormack
ae263787a7 Bug 1492660 - Deal with negative turbulence tile offsets when base frequency is zero r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6351

--HG--
extra : moz-landing-system : lando
2018-09-20 03:18:58 +00:00
Ehsan Akhgari
8d7c2999dc Bug 1491594 - Remove the XPCOM registration for the native theme renderer r=mstange
Differential Revision: https://phabricator.services.mozilla.com/D6275

--HG--
extra : moz-landing-system : lando
2018-09-20 01:20:55 +00:00
Emilio Cobos Álvarez
e39bf77494 Bug 1492567 - Back out bug 1481866. r=dbaron
Summary:
The behavior the WG proposed is way more subtle than what that bug implements,
including:

 * Implementing two logical overflow longhands.
 * Expanding the overflow shorthand to different longhands depending on the
   syntax of that.

Meanwhile, Blink hasn't done the swap and will ship the same behavior that we
shipped in Firefox 61 (bug 1453148), that is, overflow-x, then overflow-y.

So I think lacking a clear way forward we should revert this change and preserve
our shipped behavior.

Reviewers: dbaron!

Tags: #secure-revision

Bug #: 1492567

Differential Revision: https://phabricator.services.mozilla.com/D6317
2018-09-20 01:27:55 +02:00
Bogdan Tara
e7c653959c Merge inbound to mozilla-central. a=merge 2018-09-20 00:58:18 +03:00
Bogdan Tara
09950599ac Merge autoland to mozilla-central. a=merge 2018-09-20 00:56:54 +03:00
Ciure Andrei
bd4f30e2a0 Backed out 4 changesets (bug 1418816) for reftest perma failure bugs/289480.html a=backout
Backed out changeset d722f5a4a8af (bug 1418816)
Backed out changeset 75d9a625be06 (bug 1418816)
Backed out changeset 807f0f510c25 (bug 1418816)
Backed out changeset 3c4cec04f28d (bug 1418816)
2018-09-19 22:33:24 +03:00
Lee Salzman
db66e58ecc Bug 1489632 - mark Skia bitmap layer as immutable before popping it. r=rhunt 2018-09-19 15:31:09 -04:00
Narcis Beleuzu
49ae56e475 Merge inbound to mozilla-central. a=merge 2018-09-19 19:42:36 +03:00
Doug Thayer
f0ed0dee36 Bug 1417699 - Remove PrimitiveType enum r=mstange
Ran into a couple of test failures because I was leaving
mAttributes empty for empty things like MergeAttributes, and
only setting mType. Since mType is now redundant though, and
since it's the only use of PrimitiveType, I figured I'd just
remove it entirely.

Depends on D4900

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:18:44 +00:00
Doug Thayer
e79792a58a Bug 1417699 - Replace hash map with tagged union r=mstange
This replaces the hash map of attributes with a tagged union. In
this case, all filter attributes will be stored in line, with the
exception of some more complex attributes which have an internal
nsTArray of floats. This should help avoid all the hashing and
extra heap allocations.

Depends on D4899

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:18:16 +00:00
Doug Thayer
39b28dbb28 Bug 1417699 - Avoid copies of filter attributes when possible r=mstange
This is a more conservative optimization for bug 1417699. There's no
reason we need to be copying these everywhere, so let's just go ahead
and implement moves.

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

--HG--
extra : moz-landing-system : lando
2018-09-19 17:17:43 +00:00
Jamie Nicol
0d93291c01 Bug 1418816 - Part 3: Handle repeated image layers in advanced layers. r=mattwoodrow
Depends on D6025

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

--HG--
extra : moz-landing-system : lando
2018-09-19 12:14:15 +00:00