Commit Graph

30181 Commits

Author SHA1 Message Date
sotaro
2cadce31c2 Bug 1364504 - Handle device resets of ANGLE on Windows r=nical 2018-06-13 08:01:06 -07:00
sotaro
94f896e042 Bug 1467055 - Do not reuse D3D11Textures when CompositorDevice or ContentDevice is updated r=nical 2018-06-13 06:45:52 -07:00
sotaro
91729d1752 Bug 1466915 - Add D3DDevice check in ImageBridgeChild::UpdateTextureFactoryIdentifier r=nical 2018-06-13 05:28:44 -07:00
Kartikaya Gupta
4294162115 Bug 1421384 - Inherit touch-action flags down in the compositor hit-test infos. r=miko
Per the touch-action spec, the effective touch-action on an element includes
touch-action restrictions from ancestor elements up to and including the
element that has the "default action". This patch implements that behaviour
so that WebRender gets correct touch-action values on its display items.

MozReview-Commit-ID: Cw5uqAsE9qm

--HG--
extra : rebase_source : ef6e24a66385e097d50b3a03c06091464b1bb5b9
2018-06-11 08:29:24 -04:00
Kartikaya Gupta
447885b8f7 Bug 1467260 - Ensure scrollframe activation is processed by APZ before doing hit-test checks. r=botond
MozReview-Commit-ID: LBn9a9zb6fE

--HG--
extra : rebase_source : a153c9be4473cd0fee8ec59447a754cef754f3b1
2018-06-12 11:32:27 -04:00
Ciure Andrei
8c04809468 Merge mozilla-central to mozilla-inbound. a=merge CLOSED TREE 2018-06-12 00:58:18 +03:00
Adam D. Walling
fb2616093e Bug 1463139: calculate Y-span for one-touch-pinch gesture from point that gesture began (which occurs after a brief delay) instead of first touch point. r=kats 2018-06-11 11:52:52 -04:00
Botond Ballo
59adc89262 Bug 1467873 - Fix FrameMetrics::CalculateCompositedRectInCssPixels(). r=kats
- Fix the implementation to return a numerically correct result
  - Change call sites that should have instead been using
    CalculateCompositedSizeInCssPixels(), to do so
  - Rename and document to emphasize that the returned rect is in the
    CSS pixels of the content surrounding the scroll frame

MozReview-Commit-ID: GCPbA1k88rz

--HG--
extra : rebase_source : f5b937936fb84b3ae414d6cf0250add4078a9d53
2018-06-09 16:33:26 -04:00
Andreea Pavel
fb9ae65849 Merge mozilla-central to mozilla-inbound. a=merge on a CLOSED TREE 2018-06-10 12:51:28 +03:00
Joel Maher
50b91c0a14 Bug 1405428 - skip-if = verify on mochitests which do not pass test-verify. r=gbrown 2018-06-10 05:01:47 -04:00
Landry Breuil
f519765706 Bug 1457092 - Only include SandboxBroker.h header on Linux sandbox. r=gcp 2018-06-09 08:44:00 -04:00
Kartikaya Gupta
e8616078d6 Bug 1436409 - Remove the nsDisplayLayerEventRegions display item. r=mattwoodrow,tnikkel
MozReview-Commit-ID: 6mw0WUGGT0n

--HG--
extra : rebase_source : cae6237850953a7a878c774da87767a55b3c16b2
2018-06-08 17:31:27 -04:00
Kartikaya Gupta
4ae02b922c Bug 1436409 - Remove the simple-event-region-items pref and bake it in as true. r=miko
MozReview-Commit-ID: IGK1dLSyv00

--HG--
extra : rebase_source : c957cb1faf91306205043bdc2e8d8f327729bdb1
2018-06-08 17:31:27 -04:00
Kartikaya Gupta
ded66f718a Bug 1436409 - Remove the layout.event-regions.enabled pref and bake it in as false everywhere. r=tnikkel
This pref was used to enable the building of nsDisplayLayerEventRegions
items without APZ, so that we could test it in isolation. However, we no
longer need to do so, and these display items are going to be deleted
anyway, so we can remove this pref.

MozReview-Commit-ID: LJVcFafCKyS

--HG--
extra : rebase_source : 76d8eeca8dca4ea88b8226bbe6b829dbc40e03e4
2018-06-08 17:31:27 -04:00
Kartikaya Gupta
aa21a4d224 Bug 1436409 - Remove gecko/APZ hit-test codepath from WebRenderCommandBuilder. r=botond
This removes the gfx.webrender.hit-test pref, assumes a value of true
everywhere it is used, and deletes all the resulting dead code.

Some gtests were setting this pref to false, and they are now updated to
set gfxVars::UseWebRender to false instead, which has the desired effect
of using the non-WR hit-testing codepath in APZ. (The data needed for
this codepath is set up by the gtests themselves).

MozReview-Commit-ID: 9ljDr8eEnv1

--HG--
extra : rebase_source : fbc321861428e7bb0bf7ab811935b682785debdc
2018-06-08 17:31:26 -04:00
Brindusan Cristian
8a7b503816 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-09 01:03:12 +03:00
Olli Pettay
5dad9cd69b Bug 1467790 - Inline nsINode::IsEditable, r=masayuki 2018-06-08 15:57:13 -04:00
Lee Salzman
d273b4ddcc Bug 1467552 - make VectorImage::Show force OP_OVER. r=bas 2018-06-08 12:38:13 -04:00
arthur.iakab
edbf2c0099 Merge inbound to mozilla-central a=merge 2018-06-08 12:55:49 +03:00
Jeff Walden
799a518e22 Bug 745089 - Replace nscoord-specific positive-infinity/is-nan primitives with FloatingPoint.h uses. r=dbaron
--HG--
extra : rebase_source : bcc17dc96be6449116cf26c772a020d3eddd2bd3
2018-06-06 16:03:48 -07:00
Kartikaya Gupta
829cd9912f Bug 1465935 - Handle another edge case with hit-testing inside fixed-pos items. r=mstange
Transforms are containing blocks for fixed-pos items, so if a fixed-pos
item is inside a scrolled transform, then it should use that scrollframe
as the scroll target for hit-testing. This patch handles this case for
WebRender by stashing the appropriate ASR on the nsDisplayFixedPosition
item and using it instead of the presShell's root scrollframe in this
scenario.

The patch also adds a mochitest (which is basically a mochitested
version of the reftest in fixed-pos-scrolled-clip-3.html, with a
hit-test check to ensure that it's hitting the right scrollframe).

MozReview-Commit-ID: 7YQAeOiMMuP

--HG--
extra : rebase_source : 8d1c89d0c03c3e7d9383d0731f65a327a2c11a8d
2018-06-07 13:06:33 -04:00
Kartikaya Gupta
9b664db1ff Bug 1465935 - Fix hit-testing for fixed-pos items inside iframes. r=mstange
Without this patch, the scrollId for display items inside a fixed-pos
item end as the ASR of the item. In the case of fixed-pos items that are
inside iframes, the ASR is the outer document's root scrollframe. This
means that e.g. wheel-scrolling while over a fixed-pos item inside an
iframe ends up scrolling the outer document's root scrollframe instead
of the iframe's root scrollframe.

In the non-WR codepath, there some APZ machinery that walks up in the
HitTestingTreeNode tree from the hit result, looking to see if that node
has a fixed-pos ancestor, and if so, uses the fixed-pos item's target
APZ as the real hit result. This machinery doesn't exist in WR, because
we don't use the HitTestingTreeNode tree for hit-testing in APZ.
Instead, we need to make sure that the item tag for those display items
already has the appropriate scrollid set.

This patch accomplishes this by introducing a new RAII class that is
pushed into the wr::DisplayListBuilder while we are building display
items inside a nsDisplayFixedPosition, and allows the desired scroll id to
be set on the hit-testing display items.

This behaviour is exercised by test_group_wheelevents, which can now be
enabled with this fix.

MozReview-Commit-ID: L2erPVzJeql

--HG--
extra : rebase_source : 1db630513cb1dc16d4e38649812e81f62c8da99c
2018-06-07 13:06:33 -04:00
Kartikaya Gupta
e98d229159 Bug 1429521 - Re-enable QR mochitests that were failing due to hit-test flakiness. r=botond
MozReview-Commit-ID: qm2bvWO7Xa

--HG--
extra : rebase_source : 16dce9db6a98e3881b15a715d85e4d6f6d4c9429
2018-06-01 07:13:35 -04:00
Hiroshi Hatake
8d1a2c23fa Bug 1466778 - Make usable GLLibraryEGL on wayland build, r=lsalzman,stransky?
After Bug 1451183 is landed, sEGLLibrary is undefined and we should use
gl::GLLibraryEGL::Get() instead of sEGLLibrary directly.

MozReview-Commit-ID: DNEkPIEqDpK

--HG--
extra : rebase_source : b07e04ce8a9fe50d72fd857e41c1448fa917d2a9
2018-06-05 18:26:29 +09:00
Kartikaya Gupta
28ebbe606f Bug 1465784 - Remove unnecessary render step with async-scene-building. r=sotaro
MozReview-Commit-ID: 8iOQHLhlcjA

--HG--
extra : rebase_source : 4dab621c8364d719ce895f6ab62d16c73b12bee7
2018-06-06 16:45:06 -04:00
Kartikaya Gupta
1088aa797b Bug 1465892 - Re-enable assertions for WR hit-testing codepath. r=botond
MozReview-Commit-ID: 489Gyhgf1C5

--HG--
extra : rebase_source : 05b1b10629e167ffa163166239bc4bab0f70c596
2018-06-01 09:08:11 -04:00
Narcis Beleuzu
7fdbc8641e Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-06 20:04:08 +03:00
jlogandavison
9f253dcf5c Bug 1355656 - Implement test cases for two finger fling gestures. r=botond
* Add option for second focus point in PinchWithTouchInput
  * Integrate content controller in PinchWithTouchInput
  * Move PinchWithTouchInput implementation to APZCTesterBase
  * Move CreateSingleTouchData to APZTestCommon.h
  * Add optional PinchOptions parameter to PinchWithTouchInput

    PinchOptions dictates which fingers should be lifted at
    the end of the simulated pinch gesture. The default is to
    lift BOTH fingers.

--HG--
extra : rebase_source : 9a2c5d1a6a8a6ed97869d3e9d643e2a805f5dfd0
extra : amend_source : b5d2976cc3c5203069a532d228e006365e4da320
2018-05-30 19:43:28 +00:00
Narcis Beleuzu
cce21bfe40 Merge mozilla-central to inbound. a=merge CLOSED TREE 2018-06-06 12:52:15 +03:00
Narcis Beleuzu
2783aa1322 Merge inbound to mozilla-central. a=merge 2018-06-06 12:36:55 +03:00
Joel Maher
d113b6d4a4 Bug 1392106 - random-if(win7) reftest font rendering failures. r=RyanVM 2018-06-06 05:30:44 -04:00
Randall Barker
2c2e0b614f Bug 1465816 - Add initial code needed to support gfxVRExternal on android r=kip,jchen
MozReview-Commit-ID: 9rXXqIvyvhp
2018-06-05 18:33:01 -07:00
Kashav Madan
5feadd6857 Bug 1466611 - Render layout viewport on APZ minimap. r=botond
MozReview-Commit-ID: HrTRZpU3rAi

--HG--
extra : rebase_source : 701badfe0eb1f3f71d55dcdc9fa7e639b321a2d6
2018-06-04 18:02:04 -04:00
Bogdan Tara
3737701cfa Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-05 12:33:18 +03:00
Jeff Gilbert
a4c2e92cc1 Bug 1459785 - Update ANGLE to chromium/3396.
MozReview-Commit-ID: EA39lUfXuPI
2018-06-04 20:08:16 -07:00
Jeff Gilbert
416785bdf0 Bug 1459785 - Record merge_base_from in cherry_picks.txt.
Link to ANGLE<->Chrome version mapping page.

MozReview-Commit-ID: 8OWSkGigHtE
2018-06-04 20:08:13 -07:00
sotaro
d23a997a0d Bug 1466454 - Do not create CompositorWindow for non-WebRender case r=nical 2018-06-05 08:07:52 +09:00
Dorel Luca
535f1df913 Merge mozilla-central to mozilla-inbound 2018-06-04 21:48:29 +03:00
Dorel Luca
746fbfe0a7 Merge mozilla-inbound to mozilla-central. a=merge 2018-06-04 21:11:34 +03:00
Kearwood Gilbert
5bb50b3bf3 Bug 1463329 - Iterate over a copy of VRManagerChild::mDisplays to guard against modifications to mDisplays during the loop
--HG--
extra : rebase_source : 52f30a91d8dd8567e56aa30c9cb37a02f86dea9b
2018-05-30 14:07:13 -07:00
Ryan Hunt
c01796098b Bug 1346126 - Use RemoveAllChildren in ~ContainerLayerComposite. r=mattwoodrow
--HG--
extra : amend_source : 7960a34e49459979715f8a727c338370cf4760f3
2018-06-01 11:18:07 -05:00
Martin Robinson
46bd5d1cf4 Bug 1465058 - Update for API change in WR PR 2756. r=kats
MozReview-Commit-ID: 6Vg0bTpBYVh

--HG--
extra : rebase_source : f9b4f5cdb26d268d7804afb827c7710a05bc56d9
2018-05-16 16:47:08 +02:00
Kartikaya Gupta
0ffc26692e Bug 1465058 - Update webrender to commit 8e697f8cb1f1aab2e5f6b9b903eb7191340b10c5. r=Gankro
MozReview-Commit-ID: BakJj8upl1A

--HG--
extra : rebase_source : 977723b4c807e1ac4887c957ff72a2628b2367c1
2018-06-04 10:53:49 -04:00
Kartikaya Gupta
5c9db945bb Bug 1463184 - Use the HTTNAutoLock in FindScrollbarThumb. r=botond
MozReview-Commit-ID: Gk1GO44A57v

--HG--
extra : rebase_source : adf676f9980e2e725acb0431511bbcf373515112
2018-06-04 10:01:49 -04:00
Miko Mynttinen
4c85ef17cc Bug 1465060 - Part 1: Fix warnings for std::move() use r=froydnj
MozReview-Commit-ID: HpdFXqQdIOO

--HG--
extra : rebase_source : 1e7eea4f2d4ec16ec0c559a8afb26976ddbf4d07
2018-06-01 17:59:07 +02:00
Gurzau Raul
f040d25e12 Merge mozilla-central to autoland. a=merge CLOSED TREE 2018-06-04 12:53:25 +03:00
Jonathan Kew
7954a2d745 Bug 1466332 - patch 3 - Update StyleDistance function to more closely follow CSS4 Fonts algorithm. r=jwatt 2018-06-03 21:33:53 +01:00
Jonathan Kew
7cfc0cfbdc Bug 1466332 - patch 2 - Update WeightDistance function to more closely follow CSS4 Fonts algorithm. r=jwatt 2018-06-03 21:33:47 +01:00
Jonathan Kew
b4b39146d3 Bug 1466332 - patch 1 - Update StretchDistance function to more closely follow CSS4 Fonts algorithm. r=jwatt 2018-06-03 21:33:42 +01:00
Kartikaya Gupta
2cead810c0 Bug 1455597 - Flush the transaction to remove the pipeline before shutting down the WebRenderAPI. r=sotaro
MozReview-Commit-ID: GuQJjMzzQUE

--HG--
extra : rebase_source : 30f17418135fe68a3dfca0ee36f3df5c53924f24
2018-06-02 12:15:15 -04:00