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

29863 Коммитов

Автор SHA1 Сообщение Дата
Botond Ballo 26b8507766 Bug 1455285 - In MoveScrollbarForLayerMargin(), move the actual scrollbar thumb layer, not the scrollbar container layer. r=kats
This was regressed by bug 1420512, which changed things so that
ScrollbarData::mDirection is set for both kinds of scrollbar layers.

MozReview-Commit-ID: 3UHFSOgDtWj

--HG--
extra : rebase_source : 25bc732e4216dbb1971bec57421e20698126f8f2
2018-04-19 15:58:44 -04:00
Kartikaya Gupta ca319705c4 Bug 1455302 - Robustify the IsSamplerThread() check similarly to the updater code. r=botond
Same as the previous patch, but adapted for the sampler thread.

MozReview-Commit-ID: 7PVaPl38FkM

--HG--
extra : rebase_source : b7637270fea226cde15b9351a4ef8ac7ffab5796
2018-04-19 10:10:00 -04:00
Kartikaya Gupta 30e82b56dd Bug 1455302 - Allow scheduling updater thread tasks before we have the updater thread id. r=botond
This is possible if we just let the APZUpdater know during construction
if WR is enabled or not, and that information combined with the pref
will allow it to know whether to use the scene builder thread task queue
or just use the compositor thread as the updater thread.

MozReview-Commit-ID: 7IGMMtl7iFP

--HG--
extra : rebase_source : 3950adf77f4b48906b29cdb36f0437df1540bec6
2018-04-19 10:09:59 -04:00
Kartikaya Gupta 34876c4821 Bug 1454594 - Avoid running unordered_map static initializers. r=botond
We wrap the std::unordered_map in a StaticAutoPtr so that there's no
initialization cost, and also so that we have a smaller memory footprint
in processes that aren't using WebRender+APZ.

MozReview-Commit-ID: 9QCKiv0IzB8

--HG--
extra : rebase_source : 102d034478513f45da689bacffbc893370677ff7
2018-04-18 17:32:38 -04:00
Hiroyuki Ikezoe 324a2c840a Bug 1455315 - Use testing time stamp whenever we are on testing mode. r=kats
MozReview-Commit-ID: 6IgsYt40KiX

--HG--
extra : rebase_source : ace1e52d42219c4ce23b663ca79a44bf30ab51d7
2018-04-20 13:27:27 +09:00
Cosmin Sabou a024f6e7c8 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-20 06:50:57 +03:00
Cosmin Sabou b9a82af44a Backed out 2 changesets (bug 1387399) for OSX reftests permafailures on attachment-local-positioning-2.html. a=backout
Backed out changeset b78a225fa8c9 (bug 1387399)
Backed out changeset 4beeacb75bf5 (bug 1387399)
2018-04-20 06:47:41 +03:00
Cosmin Sabou dcacfcfc71 Backed out 2 changesets (bug 1454598) as requested by Mossop in developers channel. a=backout
Backed out changeset b673e87d6134 (bug 1454598)
Backed out changeset 072dc1504ce6 (bug 1454598)
2018-04-20 06:45:39 +03:00
Cosmin Sabou 4595d43d3a Merge inbound to mozilla-central. a=merge
--HG--
rename : browser/modules/offlineAppCache.jsm => toolkit/modules/offlineAppCache.jsm
2018-04-20 01:29:10 +03:00
Cosmin Sabou 5e9d16a446 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-20 01:37:07 +03:00
Kartikaya Gupta cee64af762 Bug 1391318 - Automatically enable async scene building with webrender.all. r=jrmuizel
MozReview-Commit-ID: IRXZq8ynrdt

--HG--
extra : rebase_source : b34691d952138f442fd376cbc5a79f9742e26f6b
2018-04-19 14:10:36 -04:00
Jeff Muizelaar 37945b5582 Bug 1454736. Use the bounds of the item as the bounds for PushLayer. r=Gankro
This has a big performance impact because we instead of defaulting to the bounds
of the image we can use a much smaller temporary surface.

--HG--
extra : rebase_source : 0daba1adae742df3b983f80944dc4344bc70a5d6
2018-04-17 17:30:02 -04:00
Noemi Erli 875e5ed0a1 Merge inbound to mozilla-central. a=merge 2018-04-19 12:53:30 +03:00
Hiroyuki Ikezoe 9e4f56c4f5 Bug 1455155 - Drop AnimationValue usage in gfx/. r=birtles
Two AnimationValue are still used in AnimationPropertySegment since the
AnimationPropertySegment is used in compose_animation_segment() which is also
invoked on the main-thread, so we will fix it later in a bug that will drop
AnimationValue usage on the main-thread side.

MozReview-Commit-ID: B086g2qHtZL

--HG--
extra : rebase_source : 419308155bf95fb0acd94549c2c6cc9690925b29
2018-04-19 13:50:14 +09:00
Kartikaya Gupta 6ca83b65f4 Bug 1454974 - Assert if RecvGetSnapshot ever gets called in a non-root WRBP. r=sotaro
MozReview-Commit-ID: L6bUdfEykx7

--HG--
extra : rebase_source : 1bbba753c3d8501855c9b8da336006121ad1364d
2018-04-18 16:44:03 -04:00
Bogdan Tara 6cb59b5809 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-19 01:46:00 +03:00
Andreea Pavel 465753992f Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-18 20:13:24 +03:00
Kartikaya Gupta 0ded9995cb Bug 1451469 - Complete hooking up of the sampler thread. r=botond,nical
This makes the APZ sampler thread be the render backend thread whenever
webrender is being used (not just when async scene building is enabled).

MozReview-Commit-ID: L9lmopd3pe7

--HG--
extra : rebase_source : a23793bf704a0bf3bc7ba6568ecfe5faa5720415
2018-04-16 17:39:26 -04:00
Kartikaya Gupta 5f5df795ef Bug 1451469 - Set the sample time on APZSampler. r=botond,nical
When sampling APZ transforms from rust code, we will need a timestamp at
which to sample the transforms. It's not obvious what the right
timestamp is to use here, and this will almost certainly be revisited
when we are hooking up OMTA in bug 1453360. For now we just stash the
most recent composite timestamp on the APZSampler and use that when
sampling. This seems to work fine.

MozReview-Commit-ID: KinsXO9tEJH

--HG--
extra : rebase_source : ffce8a9ac6720eea8583b03a613545ac5e9b48bf
2018-04-16 17:39:26 -04:00
Kartikaya Gupta adaebffdd8 Bug 1451469 - Add a TransactionWrapper class. r=nical
The TransactionBuilder class comes with a bunch of baggage (it
automatically allocates/deallocates a transaction under the hood) which
we will want to avoid for the RB callbacks into APZ. This patch adds a
lightweight TransactionWrapper class that APZ can use to provide the
async transform info and that will be simpler to use in the callback
from rust code.

MozReview-Commit-ID: 1ywhx4TIzGd

--HG--
extra : rebase_source : 0ac4356554db24806d03b44f5384f9b7341d4255
2018-04-16 17:39:26 -04:00
Kartikaya Gupta dceb9fc63c Bug 1451469 - Run deferred tasks on the controller thread. r=botond
Deferred tasks currently run as part of the sampling process, in
AdvanceAnimations. However, deferred tasks also sometimes need to acquire
the APZ tree lock for stuff. Acquiring the tree lock is not going to be
allowed on the render backend thread (which is the sampler thread when
WR is enabled), so we need to bump these tasks to another thread. The
controller thread is safe for this purpose.

MozReview-Commit-ID: AP3bnGF5UjL

--HG--
extra : rebase_source : 6fd81dfa488d1cada9941299e60a3d660a38895b
2018-04-16 17:39:26 -04:00
Kartikaya Gupta 7f792713ce Bug 1451469 - Allow WR sampling without the tree lock. r=botond
For webrender, we need to be able to sample the async transforms from nodes
and thumbs without holding the tree lock, since the sampling happens on
the render backend thread, and holding the tree lock would be a
threading violation. We can use the mApzcMap to sample the node
transforms, but for the thumbs we need to introduce another data
structure. This data structure packages up all the information from
the HitTestingTreeNodes that we need for the computation and stores it
protected by the map lock. This allows us to compute the transforms
safely while just holding the map lock.

MozReview-Commit-ID: BDMEbE78NnH

--HG--
extra : rebase_source : 754ceca695b5b3e1c87b1b2bde753d1775107e5f
2018-04-16 17:39:14 -04:00
Kartikaya Gupta 7a77234e86 Bug 1451469 - Add the plumbing to hook up the sampler callbacks. r=nical
MozReview-Commit-ID: GhCKVFXKfjX

--HG--
extra : rebase_source : 77d4cbf542f939c77322a505beb8af6c3ad16602
2018-04-16 17:39:14 -04:00
Kartikaya Gupta 6186818885 Bug 1451469 - Implement the guts of the WR sampler thread registration. r=botond
This lets the APZSampler know which thread is the actual sampler thread.
This is only really used for the thread assertions, but might be useful
for debugging and such as well.

Note that since this behaviour is not dependent on any prefs (unlike the
updater thread, which is only the scene builder thread when the async
scene building pref is enabled), we don't hook it up to the rust code
just yet; that will happen in the last patch.

MozReview-Commit-ID: DrrJOyFA65D

--HG--
extra : rebase_source : 61e8e75ae16f95fe5ce95fa42a3dff501979ab9e
2018-04-16 17:39:14 -04:00
Kartikaya Gupta ee76c6b413 Bug 1451469 - Maintain a map from WrWindowId to APZSampler. r=botond
MozReview-Commit-ID: Bfkfs6FTOQ6

--HG--
extra : rebase_source : 0ca8d3b9452b9ece36eadf2bd2b1bb1c0783756d
2018-04-16 17:39:13 -04:00
Coroiu Cristina 374b919ce6 Merge inbound to mozilla-central a=merge 2018-04-18 13:44:22 +03:00
Jeff Muizelaar fdf30042e6 Bug 1454659. Remove remaining assert for empty blob images.
When we removed the empty blob image assert in bug 1451458. We ended
up just moving it to this assert. We'll drop this one as well.
2018-04-17 20:37:07 -04:00
Csoregi Natalia cc8f2c09f1 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-18 01:39:35 +03:00
Sebastian Hengst a16fce83ee Backed out changeset 2efe54944e8c (bug 1453801) for huge AWSY regression with WebRender (bug 1454346) as well as frequent crashes (bug 1454112, bug 1454114). a=backout 2018-04-18 01:08:20 +03:00
Csoregi Natalia 12a8bddd95 Merge inbound to mozilla-central. a=merge 2018-04-18 00:52:25 +03:00
Andrew Osmond 69c328a7f6 Backed out changeset 2efe54944e8c (bug 1453801) for linux64-qr awsy failures. r=aosmond 2018-04-17 17:57:39 -04:00
Csoregi Natalia cbe4d558de Backed out changeset 51fdcc41076f (bug 1454659) for browser-chrome leaks. CLOSED TREE 2018-04-17 22:58:43 +03:00
Kartikaya Gupta abcf2e229e Bug 1454485 - Stop passing around the scroll view and container direction since it's already in the scrollbar data. r=botond
MozReview-Commit-ID: 3t4uLBQZSAi
2018-04-17 15:04:34 -04:00
Kartikaya Gupta 878b4beba1 Bug 1454485 - Remove redundant fields from WebRenderLayerScrollData and ensure the ScrollbarData is always correctly populated instead. r=botond
MozReview-Commit-ID: JQ9ooeiEIox
2018-04-17 15:04:25 -04:00
Kartikaya Gupta 07005742df Bug 1453688 - Update webrender to commit 5bcb7f46c6931633fd20813c46cd69af164effe7. r=jrmuizel
MozReview-Commit-ID: B71quJ8o6RG

--HG--
extra : rebase_source : dabea094dfa8be86c3fa062a1345cf85f2ca8707
2018-04-17 08:22:52 -04:00
Jeff Muizelaar c0b250b894 Bug 1454659. Remove remaining assert for empty blob images.
When we removed the empty blob image assert in bug 1451458. We ended
up just moving it to this assert. We'll drop this one as well.
2018-04-17 11:10:33 -04:00
Kartikaya Gupta da39e10e46 Bug 1453863 - Avoid potential deadlock scenario caused by improper lock acquisiting order. r=zjz 2018-04-18 12:19:54 -04:00
Kartikaya Gupta becb26798a Bug 1454465 - Turn some override prefs back into regular prefs. r=jrmuizel
These prefs are on by default now, and so there's no point in keeping them as
override prefs.

MozReview-Commit-ID: Gzs65oS9koD

--HG--
extra : rebase_source : 89d52f7992a0e87f60673f3b7bd6efad627fd040
2018-04-18 15:30:03 -04:00
Csoregi Natalia b31fdd70ba Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-18 01:37:31 +03:00
Hiroyuki Ikezoe e53f74cb86 Bug 1454550 - Call AnimationHelper::SampleAnimationForEachNode only for layers that have animations. r=kats
This is slightly efficient since we don't need to call
GetBaseAnimationStyle() or we do skip allocating animation data for such case.

MozReview-Commit-ID: BYFNwZsZ1oE

--HG--
extra : rebase_source : 441d7431bd444f1513a32d4da3c206c7df34ed94
2018-04-17 13:20:33 +09:00
Miko Mynttinen 474ef54378 Bug 1452800 - Trigger a layout flush in forceLayerTreeToCompositor. r=kats
This ensures we don't take the early-exit codepath introduced by the
PAINT_IDENTICAL_DISPLAY_LIST check, which breaks the behaviour desired
by forceLayerTreeToCompositor.

MozReview-Commit-ID: ECe6d0ZHZzt

--HG--
extra : rebase_source : 48d3f7d9b5df81ba165c0e52d1a7b78909c58774
2018-04-17 14:22:42 -04:00
Bas Schouten a27d1ff227 Bug 1387399 - Followup: Fix Windows static analysis bustage. r+a=bustage on a CLOSED TREE
MozReview-Commit-ID: AUdLD5Aiplc
2018-04-19 17:02:09 +02:00
Bas Schouten 0dee5c2745 Bug 1387399: Add SIMD optimizations for methods used frequently in nsRect. r=jrmuizel
This improves the DisplayList Mutate Talos test by about 5% on windows, as well as numerous smaller improvements on DisplayList heavy tasks.

MozReview-Commit-ID: tlEtPjqWI4
2018-04-19 15:56:29 +02:00
Jonathan Kew 6f1e2a29b3 Bug 1454598 - part 2 - Allow variation fonts to record a weight range in gfxFontEntry, and update font-matching to handle ranges. r=jwatt 2018-04-19 13:28:13 +01:00
Jonathan Kew 6b0c3d90d8 Bug 1454598 - part 1 - Make gfxFcPlatformFontList::GetFTLibrary work before font system is fully up and running, so that the global FT_Library can be used during initialization of the font list itself. 2018-04-17 21:45:29 +01:00
Kartikaya Gupta f245e247b3 Bug 1454430 - Ensure the ClearTree task runs before we shut down webrender. r=nical
MozReview-Commit-ID: BCc0zuZvktj

--HG--
extra : rebase_source : e35e41a33943a7e2d5eae869ace62802040a0d7a
2018-04-16 14:21:04 -04:00
Brindusan Cristian 667fae7dc8 Merge inbound to mozilla-central. a=merge 2018-04-17 12:53:33 +03:00
Jeff Muizelaar 5153b29720 Bug 1454507. Avoid asserting that we don't end up with an empty result. r=mstange
This adds a crash test that would previously trigger the assert.

--HG--
extra : rebase_source : f167a85bf219cf3eac1192be05c297fc5e383072
2018-04-16 18:00:35 -04:00
shindli 805cb19c1d Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-17 01:45:58 +03:00
Jonathan Kew 7b924dade9 Bug 1436048 part 2 - Store FontWeight as a fixed-point value to support fractional font-weight values. r=jwatt 2018-04-16 20:26:08 +01:00
Jeff Muizelaar a39255aea0 Bug 1454429. Remove broken paint flashing support.
Doing paint flashing here doesn't work with the merging.
We'll need to do the flashing when we actually paint the blob.

MozReview-Commit-ID: KPujW43upQp
2018-04-16 13:44:58 -04:00
Ryan Hunt a59e2dd09a Bug 1438551 - Remove unused mPaintedRegion from TiledLayerBuffer. r=nical
This appears to be unused, and is just needlessly calculating something.

MozReview-Commit-ID: Jpm9sBwJBfT

--HG--
extra : rebase_source : 0a743c6ed0f79b92715d2f902e9a607ccad0d1ea
2018-04-12 15:40:21 -05:00
Ryan Hunt d1e87928b5 Bug 1438551 - Add a pref for enabling tiles when we are using skia with parallel painting. r=nical
MozReview-Commit-ID: JVIFr2wUWHD

--HG--
extra : rebase_source : 67cf74011993a971d66d9a7350171f0190ec08cd
2018-04-10 11:29:14 -05:00
Ryan Hunt 4f2811fcda Bug 1438551 - Don't discard the back buffer when we reuse the front buffer. r=nical
It can happen often where we reuse the front buffer for a long paint, and then
the next frame we see that it is still locked, and need to allocate a new buffer
from the texture pool. If this happens we don't need to repaint the new buffer
because the old buffer is still around, but we do need to copy it over and
upload it to texture sources. It seems better to just hold onto the back buffer
and let it accumulate more invalid regions.

MozReview-Commit-ID: 2DQjwAX7ZmM

--HG--
extra : rebase_source : 3077952d3ef56deea6af68492f71bb114d96d84a
2018-04-10 09:27:09 -05:00
Ryan Hunt 75d0a20b5a Bug 1438551 - When creating a back buffer, only paint in the visible rect. r=nical
When we are creating a new back buffer we mark the whole region as being
invalid. This will cause us to paint extra in certain circumstances where
the visible region is a subset of the tile space.

MozReview-Commit-ID: BayRu0mV39O

--HG--
extra : rebase_source : b7eb40408faca5fc3fbc3e53263de7d262af35d5
2018-04-06 14:36:39 -05:00
Ryan Hunt 2108992f64 Bug 1438551 - When resizing single tile buffers be sure we don't mark the copied region as invalidated. r=nical
We discard and copy over data from the old tile when we resize a single tiled content client. For some reason
we were not removing that region we successfully copied from the invalid region we would then set on the tile.
This would cause us to do more work on following frames. For some other reason we were removing that region
from the region we'd clear for non-opaque tiles. This commit changes it so we remove it from both.

MozReview-Commit-ID: DIu1Y3jzV7Z

--HG--
extra : rebase_source : 9c06482798823cf9ecb9be4937c6af9dd1ece6f2
2018-03-26 18:15:30 -05:00
Jonathan Kew 94238d9823 Bug 1452973 - Update NS_FONT_STRETCH_* constants to values based on the percentage definitions in css fonts 4. r=jwatt 2018-04-16 10:00:57 +01:00
Miko Mynttinen 0b8872867b Bug 1393367 - Change MOZ_ASSERT to MOZ_RELEASE_ASSERT. r=mstange, r=fbraun 2018-04-12 14:18:03 +02:00
Andreea Pavel 01f50bc3d8 Merge mozilla-inbound to mozilla-central. a=merge 2018-04-14 00:56:30 +03:00
Jonathan Watt 1e7f76576a Bug 1436048 part 1 - Use a user defined type for font weight everywhere. r=jfkthame,emilio
--HG--
extra : rebase_source : 2e267ff99de6f52484e34ac15c39e5ca8b473394
2018-04-13 20:34:37 +01:00
Jonathan Watt cd28f53640 Bug 1453924 - Remove bogus multiplication by 100 in GDIFontEntry::TestCharacterMap. r=jfkthame
--HG--
extra : rebase_source : 0556f0f51557dc87e458c1d48d142ee679d98403
2018-04-11 21:15:48 +01:00
Markus Stange 686443f2a7 Bug 1444432 - Implement screenshot grabbing in LayerManagerComposite. r=jrmuizel
MozReview-Commit-ID: 4BNKNwCACUB

--HG--
extra : rebase_source : dc11246a3190f82b121b521e1324790792a5e405
2018-04-12 15:31:12 -04:00
Andrew Osmond c0369e1c33 Bug 1453801 - Remove unused consumer tracking code from SourceSurfaceSharedDataWrapper. r=jrmuizel 2018-04-13 15:24:32 -04:00
Andrew Osmond f17c1700f1 Bug 1452467 - Make native font resource memory allocations fallible. r=lsalzman 2018-04-13 13:33:15 -04:00
Markus Stange 0e34941ec1 Bug 1444432 - Add Compositor::GetWindowRenderTarget() and implement it for CompositorOGL. r=jrmuizel
MozReview-Commit-ID: d0vBM6g2pM

--HG--
extra : rebase_source : d16ad9a58c04c146cd4ef2d95d7eb2ec2cff1593
2018-03-28 14:44:17 -04:00
Markus Stange 072ffa8136 Bug 1444432 - Create Compositor::BlitRenderTarget and implement it for CompositorOGL. r=jrmuizel
MozReview-Commit-ID: Jz3bawvz1pv

--HG--
extra : rebase_source : 1b3e332aa2a312f6acc77b057bc466afc813990e
2018-04-12 15:28:26 -04:00
Markus Stange 0e1a4b9b8c Bug 1444432 - Create a Compositor abstraction called AsyncReadbackBuffer and implement it for CompositorOGL. r=jrmuizel
MozReview-Commit-ID: Jx1RFFoKypz

--HG--
extra : rebase_source : f7851e97ebc5d1cbc50896d3d02c028d26343f59
2018-03-28 15:46:38 -04:00
Markus Stange 7981f6dc01 Bug 1444432 - Add missing gfx:: qualifiers in TextureClientOGL.cpp. r=jrmuizel
MozReview-Commit-ID: BT33ief5qkt

--HG--
extra : rebase_source : 7709a9d125198880bf7765ef5a4d32ac6ca9e305
2018-04-13 00:13:41 -04:00
Markus Stange 2d583272e7 Bug 1444432 - Add an #include "X11UndefineNone.h" to GLXLibrary.h after the X11 header include, so that TiledContentClient.h doesn't suffer from a redefined None. r=jrmuizel
MozReview-Commit-ID: 8PpFuax0XHb

--HG--
extra : rebase_source : aed14abaf59f7cb4278e034ea1b7720a6ea985b6
2018-04-12 23:37:29 -04:00
Markus Stange 2d93796161 Bug 1444430 - Add a ProfilerScreenshots class which can be used to submit DataSourceSurfaces to the profiler. r=jrmuizel
ProfilerScreenshots encodes these surfaces to JPG data URLs, and submits them
as profiler markers. The encoding is done on a separate thread.

MozReview-Commit-ID: 7CKDBqUsLny

--HG--
extra : rebase_source : 45b608544b4ddf8502302cf974ca4e8b306de64e
2018-03-26 23:08:33 -04:00
Markus Stange 98c6ff684d Bug 1444430 - Extend the API of gfxUtils::EncodeSourceSurface to support encoding into a string. r=jrmuizel
MozReview-Commit-ID: KxXkOmat9RU

--HG--
extra : rebase_source : e8eed1a6330fcad42c78c8d8115ff41fc7e6a5f0
2018-04-12 15:20:14 -04:00
Markus Stange f4bfb59a34 Bug 1444430 - Remove a copy in EncodeSourceSurfaceInternal. r=jrmuizel
MozReview-Commit-ID: 5iNEd4RKIyn

--HG--
extra : rebase_source : 2ae9ad954be266c652fec3caa3b604027f09c9b0
2018-03-26 23:04:04 -04:00
Sebastian Hengst 0819f35e51 Backed out 4 changesets (bug 525063) on request from Andi. a=backout
Backed out changeset 516c4fb1e4b8 (bug 525063)
Backed out changeset 6ff8aaef2866 (bug 525063)
Backed out changeset bf13e4103150 (bug 525063)
Backed out changeset d7d2f08e051c (bug 525063)
2018-04-13 16:01:28 +03:00
Kartikaya Gupta cfd585d234 Bug 1453364 - Update scrollbar transforms separately from OMTA transforms. r=nical
Although they still happen in the same transaction, they are done in two
separate frame messages. This results in better encapsulated code on the
C++ side since we don't have to pass around an array of properties, and
will simplify future changes to update these properties at render time
rather than at GenerateFrame time.

MozReview-Commit-ID: 9qUkHX7gmD1

--HG--
extra : rebase_source : 15a319ba270eb1783815c514ae05c6a72e323dac
2018-04-11 15:28:00 -04:00
abeingessner 7bc00186cb Bug 1434630 - use proper logging framework instead of println. r=kats
This makes webrender much less verbose in release builds, and also
feeds all printing through a single managed point. This is intended
to reduce the amount of crashes we get from stdout becoming unavailable
on users' machines.
2018-04-13 10:58:06 -04:00
Andrew Osmond 74807c64ae Backed out changeset e5336e51b77f (bug 1452467) for Windows static analysis build bustage on a CLOSED TREE. r=aosmond 2018-04-13 10:14:12 -04:00
Andrew Osmond 117614d724 Bug 1452467 - Make native font resource memory allocations fallible. r=lsalzman 2018-04-13 09:41:29 -04:00
Nicholas Nethercote 51f2b494ea Bug 1448222 - Remove MediaPrefs. r=jya
This patch converts all the prefs in MediaPrefs to the new StaticPrefs system.

Note that the "media.wmf.skip-blacklist" pref was present in both MediaPrefs
and gfxPrefs. The copy in MediaPrefs was never used; this explains why this
patch does not add an entry for it to StaticPrefList.h.

Note also that the patch removes themedia.rust.mp4parser pref, because it's
unused.

MozReview-Commit-ID: IfHP37NbIjY

--HG--
extra : rebase_source : df84ea813b7c366d7be663c696891325610149c8
2018-03-20 09:48:56 +11:00
Zhang Junzhi 2bdc6774da Bug 1358017 - Part 5: Implements the "honour root" functionality for the auto-dir scrolling feature in APZ r=kats
With this commit, all the auto-dir scrolling functionalities are completed in
APZ.

MozReview-Commit-ID: L7qa3xOD8t9

--HG--
extra : rebase_source : bad2770219a0e6219f91899ab6c78e68f37195ac
2018-03-16 21:20:39 +08:00
Zhang Junzhi fe2d79f73f Bug 1358017 - Part 4: Implements the auto-dir scrolling feature(without the "honour root" functionality) in APZ r=kats
This commit implements the auto-dir scrolling functionality in APZ, based on
part 1 to part 3. However, the functionality of mousewheel.autodir.honourroot
will be implemented in a future.

MozReview-Commit-ID: 9xai99x71gh

--HG--
extra : rebase_source : 118d188f730e3fb91d147b076a053cb04e622e55
2018-03-16 19:23:53 +08:00
Zhang Junzhi 414177f87e Bug 1358017 - Part 1: Adds some comments, renames some identifiers and refactors some other trivial things. r=kats,masayuki
Do some work in preparation for implementing actual functionalities for this
bug. No actual functionality change is involved in this commit.

MozReview-Commit-ID: 5aLhr38n1N4

--HG--
extra : rebase_source : 15cfc2cea5b7668367dd3bd4a0746ae8c61b7d20
2018-03-15 16:31:07 +08:00
Kartikaya Gupta 651d96be0a Bug 1452603 - Update webrender to commit 6f997974cec5772b1797725f4a7942d742e7d7ff. r=jrmuizel
MozReview-Commit-ID: 1Gq3I7Z2Dd2

--HG--
extra : rebase_source : 00049966e37dab234cae5b13e7683a608609f2e5
2018-04-12 11:04:46 -04:00
Jeff Muizelaar 9cd801f8bb Bug 1453682. blob-inval: Drop duplicated line. r=jrmuizel
This line was doing nothing.

--HG--
extra : rebase_source : 31e79d995bc1193d6ccce90bf8f3badd5074d728
2018-04-12 10:57:57 -04:00
Alexis Beingessner faa067542e Bug 1412375 - Create a clipped stacking context for nsDisplayMasks. r=kats,mstange
This was only recently made possible by webrender#2600, which introduced special stacking-context
clips

MozReview-Commit-ID: HQAU7IsfDaz

--HG--
extra : rebase_source : 0ac7f0f3f73abdf5b60ca02b37cfaa7abeecb6a3
2018-04-11 13:00:49 -04:00
sotaro fb2b919e09 Bug 1448896 - Change some messages to WebRenderParentCommand r=nical 2018-04-12 22:13:06 +09:00
Margareta Eliza Balazs 8ca418adb9 Merge inbound to mozilla-central. a=merge 2018-04-12 12:38:56 +03:00
sotaro d411e21feb Bug 1453195 - Reduce mOptions.UseWebRender() usage in CompositorBridgeParent r=nical 2018-04-12 12:18:50 +09:00
Jeff Muizelaar d12e9de5f2 Bug 1451458. Make sure we always clear items on size change. r=mstange
This changes the code around mFollowing group size changes to match
the code in DoGroupingForDisplayList. Specifically, it makes sure
we always ClearItems() on size changes even if we don't have a key.
2018-04-11 20:50:00 -04:00
shindli 108a654fb8 Merge inbound to mozilla-central. a=merge 2018-04-12 02:45:34 +03:00
Tristan Bourvon bec4e38793 Bug 525063 - Backing out a hunk triggering an assertion in gfx/layers/SourceSurfaceSharedData.h CLOSED TREE
--HG--
extra : rebase_source : c58fb6f67fa3a3920830f3724deb0410c5b49b32
2018-04-11 17:42:49 +02:00
Tristan Bourvon a3a77c0312 Bug 525063 - Initialize uninitialized class attributes in m-c. r=ehsan 2018-04-10 21:11:02 +02:00
Kartikaya Gupta 9430ed7557 Bug 1452620 - Document the WrPipelineInfo structure. r=botond,nical
MozReview-Commit-ID: DleDZydMnKS

--HG--
extra : rebase_source : 1e86be2527841a2d1c1b999f11f9c4c03e844a2f
2018-04-10 17:26:54 -04:00
Kartikaya Gupta 97ffc1e59e Bug 1452620 - Use FfiVec to clean up WrPipelineInfo usage in C++. r=Gankro,nical
Instead of passing a WrPipelineInfo* to C++ code, we can now pass the
WrPipelineInfo directly. C++ code can access the info members without
having to call back into rust code, so the wr_pipeline_info* iterator
methods can be removed. Deleting the structure still requires passing it
back to rust.

MozReview-Commit-ID: HYcPX3mCGKW

--HG--
extra : rebase_source : f4b781cfc463c8e196f67a6e178ce4ce44a9464a
2018-04-10 17:26:54 -04:00
Kartikaya Gupta 404fe454a9 Bug 1452620 - Add an FfiVec structure. r=Gankro
This structure makes it more ergonomic to access vectors from C++. A
Vec<T> can be converted to FfiVec<T> which can safely cross the FFI
boundary. That provides an easy to use read-only access mechanism to the
vector contents. The FfiVec must be returned to rust code to be freed
properly.

MozReview-Commit-ID: AdIyEsjrPSZ

--HG--
extra : rebase_source : db87eb55e19c2d129f4c8a8155b03d9fbfc98199
2018-04-10 17:26:53 -04:00
Andreea Pavel 525c9e7907 Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-11 17:38:56 +03:00
Jeff Muizelaar c9d72fab40 Bug 1453090. Don't PopClip on a different DT. r=jrmuizel
Make sure we PushClip on the same DT as we PopClip

--HG--
extra : rebase_source : 9ddc864f86582410597c82b36190827341c146a3
2018-04-11 10:27:12 -04:00
sotaro 35982d6737 Bug 1452901 - Schedule generate frame r=nical 2018-04-11 11:34:25 +09:00
arthur.iakab bbca7c7700 Merge mozilla-central to inbound 2018-04-11 01:17:20 +03:00
Nika Layzell 0c3ba13e4c Bug 1437167 - Part 1: Stop using PRIntervalTime as the argument to CondVar::Wait and Monitor::Wait, r=mstange, r=froydnj 2018-04-10 17:49:47 -04:00
Lee Salzman dc3fc2506c Bug 1450814 - generic implementation of DrawTarget::Blur using LockBits. r=rhunt
MozReview-Commit-ID: 2jROASoiPQd
2018-04-10 16:46:32 -04:00
Robert Longson 36466d75ed Bug 1451066 - One t in detach r=jmuizelaar
--HG--
extra : rebase_source : 00669d1975e41963a2dc030d76c7edf78fcd1593
2018-04-03 10:54:00 +03:00
Jeff Muizelaar 0d0e71fde6 Bug 1451458. Make sure we always clear items on size change. r=mstange
This changes the code around mFollowing group size changes to match
the code in DoGroupingForDisplayList. Specifically, it makes sure
we always ClearItems() on size changes even if we don't have a key.

--HG--
extra : rebase_source : 2063974082862906a2831bdd76ac86871ee3dbc3
2018-04-11 13:06:04 -04:00
Gurzau Raul df79f362f0 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-10 19:56:38 +03:00
Kartikaya Gupta 97a6b6003c Bug 1449982 - Conceptually split the mUpdaterQueue into separate queues per layers id. r=botond
This allows us to treat tasks from different layers id as independent,
thereby removing the unnecessary latency increase as described in bug
1449982 comment 33.

Note that we could probably implement this by actually maintaining
separate queues for each layers id, but that involves more overhead
since we would need to have a map from layers id to task queue, and
removing entries from that map becomes tricky with respect to locking
and timing.

MozReview-Commit-ID: 7jtYqNDwJqP

--HG--
extra : rebase_source : d55fa2c20c5e78a330033dcf049d5cc468024bb0
2018-04-10 12:30:01 -04:00
Kartikaya Gupta c113f26ef7 Bug 1449982 - Hook up epoch-based task processing on the updater thread. r=botond,nical
This makes it so that we only process a UpdateHitTestingTree task (and any
tasks queued after it) once we know that the corresponding scene has
been built and swapped in by WebRender. This ensures that processing of
APZ data stays in sync with the active scene in WR.

The way we do this is by tracking the "epoch" (which is updated per
WR/layers transaction) that the APZ messages are based on. Only once the
scene for that transaction is swapped in do we process those messages.

MozReview-Commit-ID: 2qGTSTeSqve

--HG--
extra : rebase_source : fb4cb0df3970213d01e21a792957ad22771a0637
2018-04-10 12:30:01 -04:00
Kartikaya Gupta bcf81a1fe2 Bug 1449982 - Move the WebRenderScrollData storage from WebRenderBridgeParent to APZUpdater. r=botond
This allows us to easily store a handle to the APZUpdater on the
WebRenderScrollDataWrapper class and walk around in the scroll data tree
without having to query other classes like CompositorBridgeParent or
WebRenderBridgeParent when we encounter a reflayer boundary.

MozReview-Commit-ID: 6l7oMb7tBlW

--HG--
extra : rebase_source : d21b64317eaf40f743fb7354b3292ab0f54a6d05
2018-04-10 12:29:56 -04:00
Kartikaya Gupta cee3af0c5e Bug 1449982 - Clean up WrEpoch usage. r=nical
I don't know why we keep using plain uint32_t and uint64_t values when
we have better types that we can use. This makes the code use and store
wr::Epoch natively instead of raw uint32_t values that are wrapped
on-demand.

MozReview-Commit-ID: HUVcHYSxBTi

--HG--
extra : rebase_source : 9e8f367f864483a65273cbbeb1168587841279f0
2018-04-10 12:29:56 -04:00
Kartikaya Gupta 9c2db3f2e5 Bug 1449982 - Add the task queue for running things on the updater thread. r=botond
If we're using the WR scene builder thread as the updater thread, we
cannot just post a task to its message loop, because it's a rust thread
that doesn't have a message loop. Instead, we put these tasks into a queue
that we will process in callbacks that are invoked from the updater
thread.

This patch just adds the basic queue machinery, it will get more
complicated in a future patch because we need to gate the tasks to make
sure they don't run too early.

MozReview-Commit-ID: 8DCYbsQ5cBC

--HG--
extra : rebase_source : 7081fb187436451b0c9d654f2e31c486d25924d7
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 4bffc1c061 Bug 1449982 - Implement the WR updater thread registration. r=botond
This lets the APZUpdater know which thread is the actual updater thread.
This is only really used for the thread assertions, but might be useful
for debugging and such as well.

MozReview-Commit-ID: IIDm6Ui3Sh4

--HG--
extra : rebase_source : 575ba6c0c5d56276743e81e738e73e7672e08367
2018-04-10 12:29:55 -04:00
Kartikaya Gupta fde6e769ba Bug 1449982 - Add the plumbing for scene builder thread interaction. r=nical
This is all the (bidirectional) glue that connects the SceneBuilderHooks
to the APZUpdater.

MozReview-Commit-ID: JIqUaClVa57

--HG--
extra : rebase_source : c6da81e63793570f79cdfa153f6d33d2ac05bdf6
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 4a07281ed3 Bug 1449982 - Introduce pref to control async scene building. r=nical
Until all the pieces are in place, turning on this pref will probably
break horribly. But we need the pref so we can add the rest of the
pieces without enabling them by default.

MozReview-Commit-ID: 7DkcwZgXwhx

--HG--
extra : rebase_source : e1fdef2e9a682028df524f51f767a4d2187410b1
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 7dd62afca0 Bug 1449982 - Maintain a map from WrWindowId to APZUpdater. r=botond
This will allow callbacks from rust code to get a handle to the
necessary APZUpdater instance on which to invoke functions.

MozReview-Commit-ID: 13XdzZrrtI5

--HG--
extra : rebase_source : 137af2a4c738a6e9294972be9e0566c9fdef58ac
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 164909dbed Bug 1449982 - Move the window id allocation to CompositorBridgeParent. r=nical
This includes a signature change from CompositorBridgeParentBase ->
CompositorBridgeParent which is not strictly required, but it makes it less
likely that we'll accidentally create a WebRenderAPI from somewhere else
and pass a nonsense window id. In effect, the signature change makes it
likely that only CompositorBridgeParent will allocate the window ids.

MozReview-Commit-ID: 8AnnmI8RytR

--HG--
extra : rebase_source : 6fd957c4a9e5bb2175bee2cc89f7eb6d27a6bc9e
2018-04-10 12:29:55 -04:00
Kartikaya Gupta 42eff13cf2 Bug 1449982 - Don't hold the sIndirectLayerTreesLock unnecessarily while notifying APZ of a layer tree removal. r=botond
MozReview-Commit-ID: 2OqbmMHCxn9

--HG--
extra : rebase_source : ec94523ba6d56a0c9cbfe3bf1a35bfaf2ba4687c
2018-04-10 12:29:54 -04:00
Miko Mynttinen 497d73ffdc Bug 1452791 - Update WebRenderLayerManager mAnimationReadyTime in empty transactions r=kats
MozReview-Commit-ID: 898pemO7YxO

--HG--
extra : rebase_source : d9f51ae6455bb633374d0752b0c73f6ef960ba9a
2018-04-10 16:07:48 +02:00
Kartikaya Gupta b3befc287a Bug 1453463 - Update existing code to be more efficient by using the new map. r=botond
This updates existing bits of code (notably one of the GetTargetAPZC
methods) to use the new map for more efficient lookups. Places that
used GetTargetNode with a presshell-ignoring comparator can now use
GetTargetAPZC as well.

MozReview-Commit-ID: GFjO6KigVop

--HG--
extra : rebase_source : 336a7118927bd6c3f0e4edaf15770afb1f6602a9
2018-04-16 09:33:08 -04:00
Kartikaya Gupta 10a405ffe9 Bug 1453463 - Keep an APZC map on APZCTreeManager. r=botond
We are already building an almost-what-we-want map in the
TreeBuildingState, so I modified to be exactly what we want, and then
just move it to the APZCTreeManager once the tree build is done.

MozReview-Commit-ID: 40RVwYv93wR

--HG--
extra : rebase_source : 118b28dfb796f8153d07dfb356eb45a0d8298c8d
2018-04-16 09:33:08 -04:00
Kartikaya Gupta 5d85aede20 Bug 1453463 - Refactor to make unordered_maps with guid keys a little cleaner. r=botond
This is mostly just moving the existing hash function and introducing
additional helpers to create maps with presshell-ignoring guid keys. We
can use this in one place trivially so I did that as well.

MozReview-Commit-ID: G8nMS1PECT4

--HG--
extra : rebase_source : 4f34da9db77f7ec4b7e5ebaeccd532c8f8c92283
2018-04-16 09:33:07 -04:00
Csoregi Natalia 2b084713ed Merge inbound to mozilla-central. a=merge 2018-04-10 12:56:48 +03:00
Markus Stange f0fdc9bdc6 Bug 1449641 - Always use mDrawTarget when merging the buffered region into the window DrawTarget. r=sotaro
If we have a non-null mTarget, we already set mDrawTarget to mTarget. So "mTarget ? mTarget : mDrawTarget" will always evaluate to mDrawTarget.

MozReview-Commit-ID: BlGYEdlL50Q

--HG--
extra : rebase_source : 214baea43d160c85d06cc11931c1c10d9a6ae4d2
2018-03-28 13:23:35 -04:00
Markus Stange 56547dba64 Bug 1449641 - Remove extraneous "if (mRenderTarget->mDrawTarget != mDrawTarget)". r=sotaro
The same condition is checked just before this if, so it's always true.

MozReview-Commit-ID: 9Vscnkz7AoY

--HG--
extra : rebase_source : d4209c6eb3963762c76a7dc4e1344147ae63f71a
2018-03-28 13:13:03 -04:00
Markus Stange 8ce851058b Bug 1449641 - Use the correct parameter when computing the clear rect. r=sotaro
This was incorrectly using the invalid rect, so it was clearing more than
necessary and not taking advantage of the opaque region that the caller computes.
The idea is that we don't need to clear parts of the invalid region that will be
covered by something opaque.

MozReview-Commit-ID: LhEkVUMnjC9

--HG--
extra : rebase_source : 97e0124684fbe6f3231795abf0591d25db0768db
2018-03-28 13:11:44 -04:00
Andreea Pavel 26f640b36b Backed out 4 changesets (bug 1366808) for Windows GPU leakchecks on a CLOSED TREE
Backed out changeset 23f60e5acaa2 (bug 1366808)
Backed out changeset bf2262b6aca8 (bug 1366808)
Backed out changeset 1fc82af3a155 (bug 1366808)
Backed out changeset 0649f0d9884b (bug 1366808)
2018-04-10 05:11:36 +03:00
Daniel Zielas 471ef50beb Bug 1420512 - Try unifying data structures for scrollbar container and scrollbar thumb info. r=botond
MozReview-Commit-ID: 9zPkrA3CwsN

--HG--
extra : rebase_source : b52bef52576558f03afc65120a40a5312ae7eba3
2018-03-02 19:00:03 +01:00
Stephen A Pohl b40a23754c Bug 1366808: Properly detect buildID mismatches between parent and child processes and display about:restartrequired to prompt the user to restart Firefox before proceeding. r=jimm,felipe,bz 2018-04-09 20:16:31 -04:00
Andreea Pavel 0724b513f9 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-04-10 00:58:54 +03:00
Olli Pettay a2485252b4 Bug 1452751 - add a pref to control whether to default to passive touch listeners on window/document/documentElement/body , r=kats
--HG--
extra : rebase_source : ba015d60e7ab7da183048dc59dfb0fe42930df6d
2018-04-09 23:43:17 +03:00
Noemi Erli b55e1a1cbc Merge inbound to mozilla-central. a=merge 2018-04-09 19:46:07 +03:00
Kartikaya Gupta 8d337fa65b Bug 1451453 - Update for API change in WR PR 2613. r=jrmuizel
MozReview-Commit-ID: DbVj132MFri

--HG--
extra : rebase_source : 3ef6251547e9c2c495fcb955c9c4ab63ce63bad9
2018-04-09 08:27:16 -04:00
Kartikaya Gupta a95486dbd8 Bug 1451453 - Update for API change in WR PR 2600. r=jrmuizel
MozReview-Commit-ID: H5NL0Zmk9Vq

--HG--
extra : rebase_source : 6d8dd0067b58b1258587972ca88b323466561c15
2018-04-09 08:27:16 -04:00
Kartikaya Gupta 9905a5d165 Bug 1451453 - Update webrender to commit 092ada1154b72fe71d2f227a5df0239586d2323a. r=jrmuizel
MozReview-Commit-ID: 9djydrUnoWq

--HG--
extra : rebase_source : 24f1aaee32e64453daebc237e48c08804531b59e
2018-04-09 08:26:07 -04:00
Jonathan Watt 52623f7cef Bug 1452466 - Get rid of gfxFontStyle::ComputeWeight. r=jfkthame 2018-04-09 10:39:17 +01:00
Jonathan Watt ef1290712d Bug 1452170 follow-up - Fix Windows unified build bustage by adding missing AutoRestore.h includes. r=me on CLOSED TREE 2018-04-09 10:21:42 +01:00
Kartikaya Gupta efcb51ab74 Bug 1452601 - Drop LayersId::EqualFn as it is unnecessary. r=botond
It's not needed, because by default std::unorderd_map will use
std::equal_to which delegates to the operator== on LayersId which does
the same thing. We don't need to reimplement it.

MozReview-Commit-ID: CLJO2JJfbF4

--HG--
extra : rebase_source : c8f5c254f00ab5e96c5d6e140534465c5a52c5af
2018-04-09 08:29:55 -04:00
Lee Salzman a90ccf8ea5 Bug 1448703 - log WR blob image font deletions for debugging. r=jrmuizel
MozReview-Commit-ID: FwpfhKjIpfm
2018-04-08 21:31:16 -04:00
Noemi Erli eb61878455 Merge inbound to mozilla-central. a=merge 2018-04-07 00:55:15 +03:00
Jonathan Kew 309329c3c0 Bug 1450209 - Avoid use of CTFontGetAdvancesForGlyphs with variation fonts due to possible Core Text crash. r=mstange 2018-04-06 19:44:05 +01:00
Kartikaya Gupta dcb1009794 Bug 1449287 - Remove obsolete compositor animation telemetry probes. r=botond
MozReview-Commit-ID: 7zFtemtGIAx

--HG--
extra : rebase_source : e9bcf9bebf9b10151a8618882a706707c28d5bda
2018-04-05 14:55:32 -04:00
Ted Campbell ce6621e562 Bug 1451878 - Add memory reporting for gfxDWriteFontFileLoader. r=lsalzman
MozReview-Commit-ID: 9EBXTiNfRrA
2018-04-06 12:44:07 -04:00
Andrew Osmond 679c14a9c4 Bug 1388020. r=nical 2018-04-06 09:01:17 -04:00
Andreea Pavel eed7d2803f Merge mozilla-central to autoland. a=merge on a CLOSED TREE 2018-04-06 17:54:45 +03:00
Kartikaya Gupta fce60f9567 Bug 1419851 - Handle OMTA throttling for webrender. r=jrmuizel
Original patch by Ethan Lin <ethlin@mozilla.com>.

MozReview-Commit-ID: AAIaskIsz9x

--HG--
extra : rebase_source : 879144b98467f47867d66f2806d7d31dbcf2bc7b
2018-04-06 10:06:54 -04:00
Alexis Beingessner 0494a7c88a Bug 1451102 - roundout blobimage bounds and use that result consistently. r=jrmuizel
MozReview-Commit-ID: A9LLJnlOUjt

--HG--
extra : rebase_source : b66481965a17004907aeadf9ff5e0594400a2d5a
2018-04-06 23:09:25 -04:00
Bas Schouten 994ab9fbd6 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00
Jeff Muizelaar 228407bcf0 Bug 1451761. Only paint the dirty rect. r=mstange 2018-04-05 15:00:47 -04:00
Lee Salzman 3ffd2fdb72 Bug 1451845 - use SkCanvas layer clip image for DrawTargetSkia::PushLayer mask. r=jrmuizel
MozReview-Commit-ID: BwkwiorvmVY
2018-04-05 14:57:11 -04:00
Lee Salzman ff2a78845b Bug 1448667 - use ColorMatrix effect instead of LuminanceToAlpha effect for DrawTargetD2D1::IntoLuminanceSource. r=bas
MozReview-Commit-ID: LHbSiFBx6HK
2018-04-05 14:07:18 -04:00
Jonathan Kew c66fb1e660 Bug 1451296 - Make enabling of font-variation-settings and font-optical-sizing properties dependent on adequate platform support at runtime. r=lsalzman 2018-04-05 18:53:56 +01:00
Boris Zbarsky a0b6e32bba Bug 1449631 part 12. Remove the Nullable smuggling from nsIDOMEventTarget. r=smaug
MozReview-Commit-ID: 73qhRSCpr3S
2018-04-05 13:42:42 -04:00
Botond Ballo 441707aee4 Bug 1449738 - Enable helper_hittest_backface_hidden.html for WebRender. r=kats
MozReview-Commit-ID: 827paBjv4JX

--HG--
extra : rebase_source : 4974049791088d7244b70dfae19ba1b4e81f49fd
2018-03-28 14:56:52 -04:00
Noemi Erli f4d2c09aba Backed out changeset c9db3f332a19 (bug 1440753) for content sometimes not being rendered (bug 1451597). a=backout 2018-04-05 13:15:35 +03:00
Noemi Erli ff466e94c1 Merge inbound to mozilla-central. a=merge 2018-04-05 13:02:11 +03:00
sotaro 009c31f3fd Bug 1449086 - Always call WaitFlushed() in WebRenderBridgeParent::FlushRendering() r=kats 2018-04-05 11:07:54 +09:00
Jeff Muizelaar a3330d16d6 Bug 1450162. Correctly merge in the presence of reorderings. r=mstange
Previously we were assuming that we'd always get the display list in
a canonical ordering. With retained display lists this assumption is false.
2018-04-04 19:04:17 -04:00
Jeff Muizelaar eb32c7230c Bug 1450162. Use an Entry type instead of tuples. r=mstange
This will make things a bit cleaner when interacting with the upcoming cache.
2018-04-04 19:04:16 -04:00
Ryan Hunt 38a7560378 Bug 1450307 - Paper over a crash in WebRenderCommandBuilder::GenerateFallbackData. r=kats
--HG--
extra : rebase_source : 0423b6dd01a39118b35e399f2af3bf190c6ff9c4
extra : amend_source : 256fc6ea4e213546be4ae909c63d90037c2e6d57
2018-04-04 14:45:34 -05:00
Olli Pettay abe47d910c Bug 1449268 - Treat document-level touch event listeners as passive, r=kats
--HG--
extra : rebase_source : 0ea948a612dfbd46b80b52985f96685b012e0079
2018-04-04 19:19:54 +03:00
Botond Ballo 02b381dff1 Bug 1450099 - Only enter the SCROLLBAR_DRAG state if the scrollbar thumb is clicked. r=kats
MozReview-Commit-ID: HkNvYQP0KqC

--HG--
extra : rebase_source : a70141743169f36666a08582a4a12c47cd18bb45
2018-04-04 16:29:57 -04:00
Botond Ballo 28afde2e13 Bug 1450099 - Add a fast-path to FindScrollThumbNode() for when the drag metrics has not been initialized. r=kats
MozReview-Commit-ID: IGhP2KW9WC

--HG--
extra : rebase_source : b3d77febfb9bcbf03ae821147e8301b09e00d8f2
2018-04-04 16:36:01 -04:00
Narcis Beleuzu 6dda0f4a39 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-05 01:07:43 +03:00
Kartikaya Gupta 7f1e850080 Bug 1449562 - Update webrender to commit 941bf5ac998061689a1bcd18d417f1f315e41ae6. r=jrmuizel
MozReview-Commit-ID: 88ia1A1Dyhq

--HG--
extra : rebase_source : db4fc1e00eed8bdb20f0316e47d79d27bc28e322
2018-04-04 15:21:50 -04:00
David Major b3e88506ef Bug 1422368: Use intrinsics-based YUV functions from Win64 under Win32 clang-cl. r=jrmuizel 2018-04-04 08:41:36 -04:00
Margareta Eliza Balazs ca277b407b Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-04-04 12:51:48 +03:00
Margareta Eliza Balazs 210797c4c1 Merge inbound to mozilla-central. a=merge 2018-04-04 12:43:55 +03:00
sotaro a48894473a Bug 1448720 - Add UpdateBias handling in WebRenderImageHost r=nical 2018-04-04 18:41:19 +09:00
Jonathan Kew ee9b08a330 Bug 1341088 - Enable validation of opentype variation tables in downloadable fonts, and replace the keep_variation_tables pref with validate_variation_tables (default=true). r=jrmuizel 2018-04-04 10:08:05 +01:00
Jonathan Kew 9b24234052 Bug 1341088 - Update OTS to upstream rev. 63ff19f4a8, which includes support for variation tables. r=jrmuizel 2018-04-04 10:08:05 +01:00
sotaro 807f25f7be Bug 1438456 - Add GLLibraryEGL::CreateDisplay() r=jgilbert 2018-04-04 09:38:42 +09:00
Ciure Andrei 5ffac2bcd3 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-04-04 00:58:50 +03:00
Ciure Andrei 7208a2fee8 Merge inbound to mozilla-central. a=merge 2018-04-04 00:54:16 +03:00
Jeff Muizelaar 57b24cd272 Bug 1451099. Avoid expensive debugging matrix transform. 2018-04-03 16:07:28 -04:00
Jeff Muizelaar 136be180bf Bug 1450249. blob-invalidation: Round the bounds. r=mstange
This fixes a number of reftest failures.

--HG--
extra : rebase_source : 70b934e9abadded46d1ef8a08d76e69a3e420852
2018-03-29 18:26:48 -04:00
Ciure Andrei b861d14e56 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-04-04 00:56:56 +03:00
Bas Schouten 6cee50b1b0 Bug 1440753: Replace pixman regions with our own region code. r=mattwoodrow
MozReview-Commit-ID: KPsTAw3Uwa2
2018-03-09 05:27:15 +01:00
Cosmin Sabou eb23be2903 Backed out 2 changesets (bug 1450307) for reftest failures on fieldset-columns-001.html. CLOSED TREE
Backed out changeset 9436102afb18 (bug 1450307)
Backed out changeset aa8bcc37d888 (bug 1450307)
2018-04-04 20:50:00 +03:00
Ryan Hunt 0ba1c0fc98 Bug 1450307 - Round scaled paint size instead of paint bounds in GenerateFallbackData. r=jrmuizel
A component of dtSize could be zero because RoundedToInt(rect).Size() is not the same as
RoundedToInt(rect.Size()). The size after rounding might be zero, even if the rounded size
is not zero. For example with x0=0.5, x1=1.1.

MozReview-Commit-ID: 3NeBMAVD5ub

--HG--
extra : rebase_source : a241b10aa6e1e788691cfb7ac412fe5073257c81
extra : amend_source : 8d55d933c021b77463eb6c4fe0a2503fc9bf78d7
2018-04-02 17:07:04 -05:00
Jan Henning b1dce09642 Bug 1281907 - Part 2 - Add reftest for scrollbars with pinch-zooming. r=botond
MozReview-Commit-ID: K7YoEPQLJzU

--HG--
extra : rebase_source : 370eb97fd04384df4f8d7e9bdbc64ff42b89fb57
2018-04-01 17:40:04 +02:00
Jan Henning e920ec0ec7 Bug 1281907 - Part 1 - Include zoom level compensation in clip transform passed to caller. r=botond
If we don't do that, in the case of a root scrollbar the clip transform passed
to our caller will incorrectly be scaled with the current content resolution.
This means that that the position of the clip rect won't match the actual
position of the scrollbar if the resolution isn't ~1.0, so the scrollbars will
be clipped out of existence when the content is (pinch-) zoomed in or out.

MozReview-Commit-ID: 5yXa9EpTJ2g

--HG--
extra : rebase_source : 88c3b5a8613a3d6ef0c753116ebf9efe9ffc0022
2018-03-24 21:27:06 +01:00
Lee Salzman 0626b8ac56 Bug 1442669 - guard against excessively large glyphs in SkFontHost_cairo. r=jfkthame
MozReview-Commit-ID: 1X2524Q5K8E
2018-04-02 20:21:21 -04:00
Jeff Muizelaar 482fb13afc Bug 1450346. Properly initialize mAppUnitsPerDevPixel. r=mstange
--HG--
extra : rebase_source : 67d4987a7b98230daec2e9b7a07e9a22e9de7a41
2018-03-30 16:24:13 -04:00
Jeff Muizelaar 3226ae42c8 Bug 1454713. WebRenderUserData: Drop unnecessary T::Type() check. r=kats
Now that WebRenderUserData's a keyed on T::Type() we don't need to check it
after doing the lookup.

--HG--
extra : rebase_source : e20db22489b7689a241a79d2d74a54a220a60e3f
2018-04-17 13:52:45 -04:00
Ryan Hunt f8901aa7a0 Bug 1450255 - Don't reset the TextureSource when uploading tiles with advanced layers. r=nical
LayerManagerMLGPU does not have a compositor so this line will force the TextureHost to
reupload the buffer later in this function when the TextureSource is set correctly.

--HG--
extra : amend_source : 57f41549565cf770c98ace6d49460d21468568a7
2018-04-02 13:35:50 -05:00
Emilio Cobos Álvarez edd18bcc35 Bug 1420680: Remove the user font cache generation, which is also unused now. r=jfkthame
MozReview-Commit-ID: HuQg4RopOmX
2018-04-03 16:22:56 +02:00
Emilio Cobos Álvarez a4433a4de8 Bug 1420680: Rework how the loadability of font-faces is computed. r=jfkthame,bz
This reworks bug 1440561 so that we only precompute loads that belong to our
user font set, avoiding messing up with fonts in the cache that belong to other
pages.

The loadability of a font is precomputed in PreTraverse in the same way as we
did, but only for the fonts that we may end up loading. This is stored in
FontFaceSet now.

Also, the principal shenanigans that this code did are reworked to be explicit
about when the document principal changes in ResetToURI, instead of having a
member around and a mutable variable. This makes the code easier to follow.

MozReview-Commit-ID: 9ofTbaLDUF7
2018-04-03 16:22:43 +02:00
sotaro 2cc8bd0a21 Bug 1426199 - Relax ASSERT checks r=nical 2018-04-03 18:25:36 +09:00
smswessem 3814c98b00 Bug 1358240 - Replace EmojiOne with Twemoji, r=jfkthame, timdream
--HG--
extra : rebase_source : cb1d370dc4fbff33f6022acf393126e0965089de
2018-03-08 18:23:19 -06:00
Jeff Muizelaar 5e6369829c Bug 1450403. blob-invalidation: hookup paint flashing. r=mstange
--HG--
extra : rebase_source : 70c84041e3987677c40ce617d442d1ea36b86b1a
2018-03-30 22:01:10 -04:00
Jonathan Watt 156c4af1ec Bug 1436048: Use user defined types for font-stretch / font-style. r=jfkthame,jwatt
Co-authored-by: Emilio Cobos Álvarez <emilio@crisal.io>

MozReview-Commit-ID: 7ONYtICeAqb
2018-04-23 18:22:05 +02:00
Andrew Osmond 3db22ac912 Bug 1453801 - Part 3. Fix race condition shutting down the render thread and shared surfaces. r=sotaro 2018-04-23 07:57:17 -04:00
Andrew Osmond ba9721571b Bug 1453801 - Part 2. Ensure shared surfaces are properly released from render texture cache. r=sotaro 2018-04-23 07:57:15 -04:00
Andrew Osmond 5ee6ae6297 Bug 1453801 - Part 1. Ensure WebRenderUserData objects are freed after a tab switch. r=sotaro 2018-04-23 07:57:13 -04:00
sotaro fffbf4515b Bug 1450212 - Change CompositorWindow creation and destruction timing r=nical 2018-03-31 07:48:27 +09:00
Botond Ballo 257491c121 Bug 1449746 - Make helper_hittest_backface_hidden.html more robust. r=kats
MozReview-Commit-ID: J0GH58j3X6U

--HG--
extra : rebase_source : f1764396de82d583a087fe6cd27a5c11944d5121
2018-03-29 23:16:31 -04:00
Jeff Muizelaar 7bd5060424 Bug 1450134. Replace ToRelativeLayoutRect() with ToRoundedLayoutRect(). r=kats
This function doesn't use any StackingContextHelper state anymore.
We should make what it does clearer and move it to a better place.

--HG--
extra : rebase_source : 1727be9657169547d842ec9b6887837abedbefdf
2018-03-29 17:57:43 -04:00
Jeff Muizelaar 04e6e86d0f Bug 1450134. Remove ToRelativeLayoutPoint(). r=kats
It's completely unused.

--HG--
extra : rebase_source : 235f41e637502a7d44292faea4b003e60c460dcb
2018-03-29 17:57:00 -04:00
shindli 3bfd0c07fd Merge inbound to mozilla-central. a=merge 2018-03-30 12:56:21 +03:00
Botond Ballo f733b4a04e Bug 1449759 - Add an APZ mochitest for bug 1443518. r=kats
MozReview-Commit-ID: 1t6wpYo9n3P

--HG--
rename : gfx/layers/apz/test/mochitest/helper_hittest_subframe_float.html => gfx/layers/apz/test/mochitest/helper_hittest_float_bug1434846.html
extra : rebase_source : 11d9a120f1b1fdd841a7e7cb59b92975e08205df
2018-03-28 18:04:32 -04:00
Ciure Andrei c38c8d3b28 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-03-30 01:11:06 +03:00
Ciure Andrei 5d841a3421 Merge inbound to mozilla-central. a=merge 2018-03-30 01:06:18 +03:00
Jonathan Kew c2f3f60125 Bug 1430820 - Cache any required feature-modified Core Text font instances in gfxCoreTextShaper, rather than re-creating them for each shaping call. r=jrmuizel 2018-03-29 21:53:55 +01:00