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

1537 Коммитов

Автор SHA1 Сообщение Дата
Kartikaya Gupta d5eeda62c7 Bug 1378944 - Stop running some APZ mochitests with chaos mode since it causes sandbox failures and doesn't provide much value. r=jld
MozReview-Commit-ID: CTAAqtXRou0

--HG--
extra : rebase_source : 5c163edc2162f23c04b092a6471b9761b6915f94
2017-08-14 17:33:37 -04:00
Kartikaya Gupta a857960541 Bug 1388955 - Allow helper_iframe_pan to scroll a little less than the expected 50 pixels on Windows. r=botond
MozReview-Commit-ID: AJyzXsszpIr

--HG--
extra : rebase_source : 7a79bcfced9721cce8b2327d7412c54cb6badf3b
2017-08-14 16:25:58 -04:00
Milan Sreckovic e3cd0a3157 Bug 1387514: Upgrade BaseRect (derived classes) width and height direct member variable use to instead use Width()/SetWidth() and Height()/SetHeight() in .cpp files in gfx/*. r=milan
MozReview-Commit-ID: 1jESowJKdyp

--HG--
extra : rebase_source : 3839cdea46729a9af05c777215cffcb9f42a2018
2017-08-14 08:29:28 -04:00
Stone Shih 393c62eba7 Bug 1351148 Part3: Synthesize native input events with priority. f=kats,smaug. r=smaug.
The test helper_touch_action_regions.html uses nsDOMWindowUtils to synthesize native input events and creates some runnables to trigger the test. It expects the runnables which synthesize native input events are processed first, then the runnables to continue the test, and finally the input events are forwarded from chrome process to content process. Enabling event prioritization may change the execution order.
Wraps those runnables to synthesize native input events as priority=input and dispatches those runnables to continue the test with priority=input to make sure the execution order is as expected.

MozReview-Commit-ID: 8hkaB1FRW9T
2017-05-19 15:41:24 +08:00
Wes Kocher a5fc391fdf Merge m-c to autoland a=merge
MozReview-Commit-ID: LsPv9Mdodvf
2017-08-11 13:39:17 -07:00
Ryan Hunt 3e8077123f Bug 1387551 - Handle "general.smoothScroll" with async keyboard scrolling. r=kats
This commit modifies AsyncPanZoomController to scroll immediately for any keyboard
scrolls when the pref, "general.smoothScroll" is disabled.

MozReview-Commit-ID: 3lfRMOCC7er

--HG--
extra : source : 9e9480d318f92811828756267c4b4fb7ea2fcf1b
2017-08-08 14:53:04 -05:00
Ryan Hunt 8013236c20 Bug 1388466 - Sync focus sequence numbers when the compositor is reset. r=kats
When a compositor is recreated, either from a driver reset or a GPU process crash, the
focus sequence number in content persists, and when APZ is recreated, content will have
a higher sequence number.

There are two ways of handling this: either resetting all of content's focus sequence
numbers to zero to match the new focus state, or updating the new focus state to the
latest sequence number in content.

This commit does the latter by detecting when the focus state was newly created and
syncing it's sequence number to content if content is ahead.

MozReview-Commit-ID: GkIp7AWyaFw

--HG--
extra : source : b6339570bbd8576447f128359278868fb6d1d8e7
2017-08-10 15:07:35 -05:00
Kartikaya Gupta e8bad265b2 Bug 1389492 - Ensure the helper_key_scroll waits for repaints from the main-thread scroll to finish before triggering the async scroll. r=rhunt
MozReview-Commit-ID: EsYz5LSc83Q

--HG--
extra : rebase_source : 5b64fd13068b7058c91942d164906cf32e9864a4
2017-08-11 10:37:25 -04:00
Stone Shih f5cb5ecde2 Backed out changeset 07b66fb75c71 (bug 1351148) 2017-08-11 15:19:37 +08:00
Joel Maher 0003b91c8f Bug 1388356 - add pref apz.test.fails_with_native_injection for windows to allow touch based events to work in windows 10 tests. r=kats
MozReview-Commit-ID: 3QJ1aFpxGxY
2017-08-08 15:08:04 -04:00
Ryan Hunt 2dbd25ee8a Bug 1384980 - Add a doc comment for apz.keyboard.enabled. r=botond
MozReview-Commit-ID: 5pQXqmUzxJQ

--HG--
extra : rebase_source : c14735e1fde801b8ee9eb388006e7012627ab33f
2017-08-04 11:31:49 -04:00
Ryan Hunt 767be953a9 Bug 1385071 - Allow keyboard APZ with passive listeners, behind a pref. r=kats
This commit adds the pref, 'apz.keyboard.passive-listeners', to allow web
content to have passive key event listeners and use keyboard APZ. When we are
allowing passive listeners, we need to dispatch the input to content and can
no longer consume the event. So we use mHandledByAPZ in nsXBLWindowKeyHandler
to determine whether we still need to do the default action, or whether it
has been done by APZ.

MozReview-Commit-ID: 2HAC6DjDyPZ

--HG--
extra : rebase_source : 77543ef3f28bdbb8ef77e984097ce75cdf333c82
2017-07-27 19:53:57 -04:00
Ryan Hunt c38e071dbe Bug 1385071 - Add another method to EventTarget for detecting only non-passive key listeners. r=smaug
This is for adding a pref that will allow web content to have key listeners
and use keyboard APZ, if they are marked passive. This commit also reworks
the function names and comments to make them more accurate.

MozReview-Commit-ID: LGDaVQOK1CS

--HG--
extra : rebase_source : a6bb4b7fff3488dea62b9114aa164814c74561a4
2017-07-27 19:46:44 -04:00
Botond Ballo ae01f40e30 Bug 1386742 - Fix a transcription error in the APZ autoscroll calculation. r=kats
MozReview-Commit-ID: DNVBRR6wucU

--HG--
extra : rebase_source : 45097a948b6a26cf1dbc1ed53741cd180d22b34a
2017-08-02 13:51:30 -04:00
Botond Ballo a69196a7bc Bug 1385468 - Notify browser.xml when APZ cancels an AutoscrollAnimation. r=kats
The notification is sent via GeckoContentController, PAPZCTreeManager if
necessary (to go from the GPU process to the parent process), and the
observer service.

Naturally, the notification is not sent in the case where it's browser.xml
that initiates the shutdown.

MozReview-Commit-ID: IAaSf4HiDF4

--HG--
extra : rebase_source : 80855ac7d3ae44c393dde96650b330cc737f69d6
2017-07-31 19:15:26 -04:00
Stone Shih b15ea606eb Bug 1351148 Part3: Synthesize native input events with priority. f=kats,smaug. r=smaug.
The test helper_touch_action_regions.html uses nsDOMWindowUtils to synthesize native input events and creates some runnables to trigger the test. It expects the runnables which synthesize native input events are processed first, then the runnables to continue the test, and finally the input events are forwarded from chrome process to content process. Enabling event prioritization may change the execution order.
Wraps those runnables to synthesize native input events as priority=input and dispatches those runnables to continue the test with priority=input to make sure the execution order is as expected.

MozReview-Commit-ID: 8hkaB1FRW9T
2017-05-19 15:41:24 +08:00
Botond Ballo fafef4638c Bug 1105109 - ScrollInputMethod telemetry for APZ autoscrolling. r=kats
MozReview-Commit-ID: 5ICwYnZTcm9

--HG--
extra : rebase_source : ab29eb3d0d9dc83daa5843e4cef66fe58d9d2267
2017-07-28 16:32:42 -04:00
Botond Ballo 3916c49dc6 Bug 1105109 - Put APZ autoscrolling behind a pref. r=kats
For now, the pref is off by default.

MozReview-Commit-ID: BtzmFGIAGey

--HG--
extra : rebase_source : a85b20059ae904cc18241e128974bbe8ee060468
2017-07-28 19:01:52 -04:00
Botond Ballo e0c06e98b6 Bug 1105109 - Notify content when APZ is handling an autoscroll. r=kats
MozReview-Commit-ID: BeuZt30fMpn

--HG--
extra : rebase_source : 0d96639d873d12e63d981b3bc50b08360fb10d59
2017-07-26 19:32:57 -04:00
Botond Ballo e54b8b4984 Bug 1105109 - Have the parent process notify APZ of the start and stop of autoscrolling. r=kats
The messages are routed through nsITabParent, nsIWidget, and IAPZCTreeManager
(the latter possibly remoted via PAPZCTreeManager if out-of-process compositing
is used).

MozReview-Commit-ID: 1zXzLa1fqpG

--HG--
extra : rebase_source : c482816ecbaec0a889d817851ee15be186b2a49c
2017-07-26 19:33:02 -04:00
Botond Ballo 23e65cc51e Bug 1105109 - Add autoscrolling support to AsyncPanZoomController. r=kats
This involves adding a new type of AsyncPanZoomAnimation, a new APZC state,
and methods to start and stop autoscrolling.

MozReview-Commit-ID: BEYPJIR30Lw

--HG--
extra : rebase_source : 81a96fd73348853f9e1a94a9f72f7de0073cc66f
2017-07-28 15:04:00 -04:00
Botond Ballo 1e610da876 Bug 1105109 - Add a ScrollByAndClamp() utility function to AsyncPanZoomController. r=kats
MozReview-Commit-ID: GPnuL0kmWsN

--HG--
extra : rebase_source : c5773713b1ca8b1b7b95fc476372f0286690e211
2017-06-19 18:06:03 -04:00
Botond Ballo 9da4eab494 Bug 1105109 - Introduce a FrameMetrics::ClampAndSetScrollOffset() helper. r=kats
MozReview-Commit-ID: 6LCPKrdGM6M

--HG--
extra : rebase_source : 65f51ce5c40d9f1ac64c1f94055aa87d44a72cae
2017-07-28 14:57:54 -04:00
Botond Ballo e3ca66d639 Bug 1105109 - Have APZCTreeManager keep track of the current mouse position. r=kats
MozReview-Commit-ID: 7o80O8rpdNS

--HG--
extra : rebase_source : c775d1d2f245878e10774e41b58d550eabb77d18
2017-06-19 18:04:50 -04:00
Carsten "Tomcat" Book 28bdd40776 Merge mozilla-central to mozilla-inbound 2017-07-28 09:48:24 +02:00
Carsten "Tomcat" Book 6ddad46b40 Backed out changeset 1662b38e3107 (bug 1351148) 2017-07-28 09:20:23 +02:00
Carsten "Tomcat" Book d360d49d2a merge mozilla-inbound to mozilla-central a=merge 2017-07-27 10:57:25 +02:00
Ryan Hunt 0599df77a5 Bug 1383365 - Add a test to assert async key scrolling happens. r=botond
MozReview-Commit-ID: 13XydDOHXUE

--HG--
extra : rebase_source : 6824ddf0e0d00134b49147fee21ee4e75455ff29
extra : source : 1db44c2e79032184d3fb96d34e84052aa73b603a
extra : histedit_source : 9acc007ccd27100af79a297f24a3221cd63337f2
2017-07-23 12:42:26 -04:00
Ryan Hunt 52d2be54b8 Bug 1383365 - Add in missing code for mActiveKeyboardBlock in InputQueue. r=kats
MozReview-Commit-ID: EUq8wPS1aDZ

--HG--
extra : rebase_source : 3d684c76e67c3cbc2434e41f343232d6e6a69366
extra : source : d02ae74dab6da0990ecabcc3bcdeeaf3ba07ebf9
extra : histedit_source : d4724c5f7141ce6a9256482a9d1ebc2e1656f4de
2017-07-26 20:31:40 -04:00
Ryan Hunt 292142a929 Bug 1383365 - Fix APZ focus target log parameter order. r=botond
MozReview-Commit-ID: DJtXaylyseg

--HG--
extra : rebase_source : cb1228dcd6923884e3304c7b51851dee07964706
extra : source : 14d0e2a451e769dcd23f1a47f954b31231519dae
2017-07-23 13:58:19 -04:00
Bevis Tseng 95b18d794e Bug 1382172 - Name nsITimerCallback instances in native implementation. r=billm
--HG--
extra : rebase_source : 84de1abfcc30a6964144c2e6718a508c71027b65
2017-07-27 02:18:20 +08:00
Bevis Tseng d935b29e72 Bug 1378930 - Part 1: Remove nsINamed::SetName(). r=billm
MozReview-Commit-ID: 7aM1yJRsfPH

--HG--
extra : rebase_source : f207a37be835ac4e6c431af56737cebacf5c566d
2017-07-21 11:50:43 +08:00
Kartikaya Gupta ba4b3b9101 Bug 1384233 - Remove SizePrintfMacros.h. r=froydnj
We have a minimum requirement of VS 2015 for Windows builds, which supports
the z length modifier for format specifiers. So we don't need SizePrintfMacros.h
any more, and can just use %zu and friends directly everywhere.

MozReview-Commit-ID: 6s78RvPFMzv

--HG--
extra : rebase_source : 009ea39eb4dac1c927aa03e4f97d8ab673de8a0e
2017-07-26 16:03:57 -04:00
Botond Ballo 95d3464484 Bug 1383912 - Ensure we always get a composite for the latest async scroll offset. r=kats
This fixes a regression with apz.frame_delay.enabled=true introduced in
bug 1375949.

MozReview-Commit-ID: AIcGA7c2Co0

--HG--
extra : rebase_source : b118a97674cadef1359e7658539e4e0e9cb785b8
2017-07-24 17:51:15 -04:00
Carsten "Tomcat" Book 7ab0637eb6 Backed out changeset 14d0e2a451e7 (bug 1383365) for perma crashes in test_wheel_transactions.html 2017-07-26 13:59:12 +02:00
Carsten "Tomcat" Book 7dbd2bee72 Backed out changeset 1db44c2e7903 (bug 1383365) 2017-07-26 13:58:55 +02:00
Ryan Hunt 3a91a63dd0 Bug 1383365 - Add a test to assert async key scrolling happens. r=botond
MozReview-Commit-ID: 13XydDOHXUE

--HG--
extra : rebase_source : 45daf95f9261afc0d605f74354f33b80f5083459
2017-07-23 12:42:26 -04:00
Ryan Hunt 4f873939a9 Bug 1383365 - Fix APZ focus target log parameter order. r=botond
MozReview-Commit-ID: DJtXaylyseg

--HG--
extra : rebase_source : 1d2e851a591f71d241b1051a10c06efbbbb39f23
2017-07-23 13:58:19 -04:00
Kartikaya Gupta 565bb8ca40 Bug 1382215. r=botond 2017-07-22 14:52:49 -04:00
Ethan Lin a48f3ac6fe Bug 1378602 - Part2. Move animation data from layer to AnimationInfo. r=kats
MozReview-Commit-ID: 4gv8EfPgsii
2017-07-21 14:21:47 +08:00
Stone Shih 5c6d99d228 Bug 1351148 Part3: Synthesize native input events with priority. f=kats,smaug. r=smaug.
The test helper_touch_action_regions.html uses nsDOMWindowUtils to synthesize native input events and creates some runnables to trigger the test. It expects the runnables which synthesize native input events are processed first, then the runnables to continue the test, and finally the input events are forwarded from chrome process to content process. Enabling event prioritization may change the execution order.
Wraps those runnables to synthesize native input events as priority=input and dispatches those runnables to continue the test with priority=input to make sure the execution order is as expected.

MozReview-Commit-ID: 8hkaB1FRW9T
2017-05-19 15:41:24 +08:00
Stone Shih 04c2d24213 Bug 1309678: Logging touch and mouse events in helper_bug1285070.html for easier debugging. r=kats.
MozReview-Commit-ID: DJHifeaynOX
2017-07-18 15:41:26 +08:00
Ryan Hunt 2cac42b189 Bug 1382521 - Don't dereference a null PresShell in FocusTarget. r=kats
MozReview-Commit-ID: 4Zg4XrCIYZD

--HG--
extra : rebase_source : ab7527509ac7c75f4d762554233a38d8bf43478c
extra : histedit_source : 7ebdcff0fc47ce9cfc43dff6b817944fbcf9b0fd
2017-07-19 23:34:59 -04:00
Wes Kocher b5bcc4905e Merge inbound to central, a=merge CLOSED TREE
MozReview-Commit-ID: CBL7SUEUGKV
2017-07-19 17:29:56 -07:00
Ryan Hunt f116107a57 Bug 1379280 - Only do async keyboard scrolling for a selection, not a focused element. r=smaug
This commit changes async keyboard scrolling to be enabled only if the content to
scroll is from a selection. This works around the problem of detecting whether
an arbitrary element has key listeners that should prevent async key scrolling,
because when they have the focus we will have disabled async key scrolling.

MozReview-Commit-ID: 6HhSuGZNsMX

--HG--
extra : rebase_source : 98a6449dd1e913136ca66532a67df8e0bb717e52
2017-07-13 15:53:26 -05:00
Ryan Hunt 017d292cac Bug 1382128 part 2 - Remove WrPoint, WrSize, WrRect, WrMatrix, and WrColor. r=kats
MozReview-Commit-ID: 9koNScu4CyE

--HG--
extra : rebase_source : 68185e949ddf2ae346a5d597d056a7f2d9ea7a28
2017-07-18 18:32:46 -04:00
Kartikaya Gupta 78a69a5578 Bug 1382200 - Eliminate LayerMetricsWrapper::IsScrollInfoLayer entirely by inlining it. r=botond
MozReview-Commit-ID: KX35cjOAQw7

--HG--
extra : rebase_source : 2e451ce0250ec17fc7f1a642e5a8a341c073105d
2017-07-19 09:24:28 -04:00
Ryan Hunt 3f3cb0a954 Bug 1382128 part 1 - Use a namespace in webrender_bindings. r=kats
MozReview-Commit-ID: 3JTMa9Ix5S7

--HG--
extra : rebase_source : 0bea14d9e395cab260d2db5135b1f64e9f82b2e2
2017-06-27 19:20:36 -04:00
Kris Maglione 86877fceef Bug 1381097: Part 1 - Add default-false pref to enable APZ in remote popups. r=kats
Ideally, we definitely want APZ in remote popup browsers for the sake of
responsiveness. However, there are currently some serious painting and
checkerboarding issues that make APZ popups unsuitable for release
populations.

Once these issues are addressed, we should enable the preference by default.
But given the relative lack of testing, and the issues we've seen so far, we
should keep the preference so that we can disable it with a hotfix if further
issues arise.

MozReview-Commit-ID: GOZRdsmLNZR

--HG--
extra : rebase_source : ce0f2ca029d951a9c65ec1482e065b6695793133
2017-07-15 12:01:36 -07:00
Ryan Hunt 8da6a723fb Bug 1381125 - Add whether a focus target has key listeners to the APZ keyboard logs. r=kats
MozReview-Commit-ID: 7S3VAowF2p3

--HG--
extra : rebase_source : 3e5ffeb1ce2329b3bbd68ac4612a4ded4dd49730
2017-07-13 10:56:17 -05:00