Commit Graph

697 Commits

Author SHA1 Message Date
David Anderson
fb11b16545 Fix inactive scroll frames sometimes creating very large, incorrect hit regions. (bug 1190112, r=tn) 2015-10-07 12:08:53 -07:00
Benoit Girard
de3c586402 Bug 1199885 - Part 10: Add APZTeeManager API to start an async scroll. r=kats
--HG--
extra : commitid : Bcuo2Zbt0IB
2015-09-28 17:00:21 -04:00
Benoit Girard
5e9f05f89c Bug 1199885 - Part 9: Let APZC handle the drag events. r=kats
--HG--
extra : commitid : 5eL9kMtaPPT
2015-09-28 14:44:37 -04:00
Benoit Girard
48624c592c Bug 1199885 - Part 8: Add FindScrollNode to locate the scrollbar thumb. r=kats
--HG--
extra : commitid : 9yE7xtzOs3I
2015-09-28 14:44:37 -04:00
Benoit Girard
eb3b891bbc Bug 1199885 - Part 4: Let the hit testing tree know about the scroll thumb. r=kats
--HG--
extra : commitid : 2sY04WntME0
extra : rebase_source : 98008b1dcc3236ef65e1809fd849fae6c31c76f7
2015-09-28 14:44:36 -04:00
Benoit Girard
fd05a3df17 Bug 1199885 - Part 2: Add AsyncDragMetrics. r=kats
--HG--
extra : commitid : Bq9QdYWF3v3
extra : rebase_source : bdd10ec82cd18811fa8fe75477d02dc862ece99b
2015-09-28 14:43:50 -04:00
Kevin Wern
98513a1124 Bug 1202050 - Use UntransformTo in a few more places in APZ code. r=botond
We previously believed these matrices could only be 2D, but it turns out
they can potentially be 3D projective transforms, so we need to use
UntransformTo() when applying them.

The patch also removes the unused function APZCTreeManager::TransformCoordinateToGecko().

--HG--
extra : rebase_source : e73862963df275036f35272b688f65c271ca659a
extra : source : b04cab83c7f061b9b934d30f7e5adb831206972e
2015-10-05 11:47:01 -04:00
Kartikaya Gupta
bdb1f426ad Bug 1208973 - Ensure all code in TaskThrottler is threadsafe since it gets called from various threads. r=botond
Hat tip to :froydnj for describing the proof-of-lock technique used in this patch
in his blog at https://blog.mozilla.org/nfroyd/2015/09/17/compiler-enforced-locked-accesses/

--HG--
extra : commitid : 4jVEAYGsCvY
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
b5d5d0a876 Bug 1208973 - Move function bodies into .cpp file, and remove an unused one. r=botond
--HG--
extra : commitid : DfuxghUHabo
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
9d9b349ef7 Bug 1208973 - Refactor and add logging to TaskThrottler. r=botond
--HG--
extra : commitid : 2jSGP022pln
2015-10-05 16:18:56 -04:00
Kartikaya Gupta
b41507aa42 Bug 1203901 - Increase the long-tap threshold time for test_basic_pan.html. r=botond
--HG--
extra : commitid : 2XXaQZK7q6a
2015-10-05 16:18:24 -04:00
Kartikaya Gupta
cf8ced3692 Bug 1203901 - Ensure the page is painted before sending touch events to it. r=botond
--HG--
extra : commitid : 6AgCi7DcqCN
2015-10-05 16:18:24 -04:00
Kartikaya Gupta
e501333b17 Bug 1208023 - Add a reftest. r=botond
--HG--
extra : commitid : DSHoZcPIQul
2015-10-02 23:08:23 -04:00
Jared Wein
7726e7e3d1 Backout of bug 1208636 due to it causing large black areas on long pages (bug 1210411). rs=kats 2015-10-02 00:04:21 -04:00
Mason Chang
dda611f73d Bug 1208636 - Adjust displayport size based on available system memory. r=kats 2015-09-29 15:42:37 -07:00
Mason Chang
b3bcc68629 Bug 1208554 - Take Velocity into account for WheelScrollAnimations. r=kats 2015-09-28 17:07:06 -07:00
Kartikaya Gupta
a3d47ba1cd Bug 1207270 - Update tests to ensure that TaskThrottlers are created as appropriate. r=botond
--HG--
extra : commitid : LcF5dobJwsF
2015-09-25 13:54:11 -04:00
Kartikaya Gupta
1a46906324 Bug 1207270 - Ensure that the TaskThrottler objects are created on the main thread. r=botond
--HG--
extra : commitid : C7pynADlf3C
2015-09-25 13:54:11 -04:00
Morris Tseng
2275dcb794 Bug 1207887 - Fix AsyncPanZoomAnimation, WheelScrollAnimation and TextureHost doesn't compile in non-unified build. r=nical 2015-09-23 18:53:00 +02:00
Avi Halachmi
648f55e7e6 Bug 1207656: APZ mouse wheel scroll: don't ignore minimum duration. r=dvander 2015-09-23 19:35:44 +03:00
Botond Ballo
27eb9671a7 Bug 1014691 - Move APZ reftests to apz/test/reftest. r=kats
--HG--
rename : gfx/layers/apz/reftests/async-scrollbar-1-h-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-1-h-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-h-rtl-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-1-h-rtl-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-h-rtl.html => gfx/layers/apz/test/reftest/async-scrollbar-1-h-rtl.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-h.html => gfx/layers/apz/test/reftest/async-scrollbar-1-h.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-v-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-1-v-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-v-rtl-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-1-v-rtl-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-v-rtl.html => gfx/layers/apz/test/reftest/async-scrollbar-1-v-rtl.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-v.html => gfx/layers/apz/test/reftest/async-scrollbar-1-v.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-vh-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-1-vh-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-vh-rtl-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-1-vh-rtl-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-vh-rtl.html => gfx/layers/apz/test/reftest/async-scrollbar-1-vh-rtl.html
rename : gfx/layers/apz/reftests/async-scrollbar-1-vh.html => gfx/layers/apz/test/reftest/async-scrollbar-1-vh.html
rename : gfx/layers/apz/reftests/async-scrollbar-zoom-1-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-zoom-1-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-zoom-1.html => gfx/layers/apz/test/reftest/async-scrollbar-zoom-1.html
rename : gfx/layers/apz/reftests/async-scrollbar-zoom-2-ref.html => gfx/layers/apz/test/reftest/async-scrollbar-zoom-2-ref.html
rename : gfx/layers/apz/reftests/async-scrollbar-zoom-2.html => gfx/layers/apz/test/reftest/async-scrollbar-zoom-2.html
rename : gfx/layers/apz/reftests/reftest.list => gfx/layers/apz/test/reftest/reftest.list
extra : source : f811b4e8a7c7b1f4cdcc79b76ee1c32116e4925d
2015-09-18 13:19:55 -04:00
Botond Ballo
ce4f8b079b Bug 1014691 - Get TestAsyncPanZoomController to compile in its new location. r=kats
--HG--
extra : source : aa30dbad3f9ff5a2cf7f847ec2ea381d4c9ea5d9
2015-09-16 19:49:59 -04:00
Botond Ballo
0f6812acd5 Bug 1014691 - Move TestAsyncPanZoomController.cpp to gfx/layers/apz/test/gtest. r=kats,glandium
--HG--
rename : gfx/tests/gtest/TestAsyncPanZoomController.cpp => gfx/layers/apz/test/gtest/TestAsyncPanZoomController.cpp
extra : source : 18f51acd98206483573be0fcf636e6fcc76e89b0
2015-09-18 13:19:05 -04:00
Botond Ballo
49e6226acc Bug 1014691 - Move APZ mochitests to gfx/layers/apz/test/mochitest. r=kats
--HG--
rename : gfx/layers/apz/test/apz_test_native_event_utils.js => gfx/layers/apz/test/mochitest/apz_test_native_event_utils.js
rename : gfx/layers/apz/test/apz_test_utils.js => gfx/layers/apz/test/mochitest/apz_test_utils.js
rename : gfx/layers/apz/test/chrome.ini => gfx/layers/apz/test/mochitest/chrome.ini
rename : gfx/layers/apz/test/helper_basic_pan.html => gfx/layers/apz/test/mochitest/helper_basic_pan.html
rename : gfx/layers/apz/test/helper_bug1151663.html => gfx/layers/apz/test/mochitest/helper_bug1151663.html
rename : gfx/layers/apz/test/helper_bug982141.html => gfx/layers/apz/test/mochitest/helper_bug982141.html
rename : gfx/layers/apz/test/helper_div_pan.html => gfx/layers/apz/test/mochitest/helper_div_pan.html
rename : gfx/layers/apz/test/helper_iframe1.html => gfx/layers/apz/test/mochitest/helper_iframe1.html
rename : gfx/layers/apz/test/helper_iframe2.html => gfx/layers/apz/test/mochitest/helper_iframe2.html
rename : gfx/layers/apz/test/helper_iframe_pan.html => gfx/layers/apz/test/mochitest/helper_iframe_pan.html
rename : gfx/layers/apz/test/helper_subframe_style.css => gfx/layers/apz/test/mochitest/helper_subframe_style.css
rename : gfx/layers/apz/test/mochitest.ini => gfx/layers/apz/test/mochitest/mochitest.ini
rename : gfx/layers/apz/test/test_basic_pan.html => gfx/layers/apz/test/mochitest/test_basic_pan.html
rename : gfx/layers/apz/test/test_bug1151663.html => gfx/layers/apz/test/mochitest/test_bug1151663.html
rename : gfx/layers/apz/test/test_bug1151667.html => gfx/layers/apz/test/mochitest/test_bug1151667.html
rename : gfx/layers/apz/test/test_bug982141.html => gfx/layers/apz/test/mochitest/test_bug982141.html
rename : gfx/layers/apz/test/test_layerization.html => gfx/layers/apz/test/mochitest/test_layerization.html
rename : gfx/layers/apz/test/test_scroll_inactive_flattened_frame.html => gfx/layers/apz/test/mochitest/test_scroll_inactive_flattened_frame.html
rename : gfx/layers/apz/test/test_smoothness.html => gfx/layers/apz/test/mochitest/test_smoothness.html
rename : gfx/layers/apz/test/test_wheel_scroll.html => gfx/layers/apz/test/mochitest/test_wheel_scroll.html
rename : gfx/layers/apz/test/test_wheel_transactions.html => gfx/layers/apz/test/mochitest/test_wheel_transactions.html
extra : source : da98c4962d299e488ff456a35ec642708f6c8c49
2015-09-16 19:26:04 -04:00
Thinker K.F. Li
e9a8758d19 Bug 1097464 - Part 3 - Fix and add reftests. r=roc
--HG--
extra : rebase_source : cd4a906c120d96e6c8d37ce2e301f7ab3837e3bc
2015-09-17 08:30:00 +02:00
Carsten "Tomcat" Book
f7534678df Backed out 6 changesets (bug 1097464) for causing OS X 10.10 Reftest Errors
Backed out changeset fbf63ce1ba88 (bug 1097464)
Backed out changeset fdaf4cfa6707 (bug 1097464)
Backed out changeset 727ebd9f744a (bug 1097464)
Backed out changeset 03f03a776042 (bug 1097464)
Backed out changeset 5ec6364b87d7 (bug 1097464)
Backed out changeset 47d056b3af7f (bug 1097464)

--HG--
extra : rebase_source : e2da133b489e4adba373303dad6e559826927e19
2015-09-17 16:24:43 +02:00
Randall Barker
a7e6f1f6ef Bug 1204932 - When C++APZ is enabled, elements that are zoomed with double tap should be centered. r=botond 2015-09-16 10:53:00 +02:00
Randall Barker
1075e0ad2c Bug 1204084 - Double tap gesture fails when tapping on a large element contained in an iframe or scrollable div. r=botond 2015-09-16 11:17:00 +02:00
Chris Lord
07467bcbc8 Bug 1201101 - Enable axis-locking over multiple APZCs. r=botond 2015-09-14 07:40:00 +02:00
Chris Lord
930f7b97f3 Bug 1201098 - Consume fling and overscroll velocity per-axis. r=botond 2015-09-16 01:49:00 +02:00
Thinker K.F. Li
67f398225c Bug 1097464 - Part 3 - Fix and add reftests. r=roc 2015-09-17 03:31:00 +02:00
Botond Ballo
f6316bb39c Bug 1200063 - Rename MakeAPZCInstance to NewAPZCInstance for consistency. r=kats
--HG--
extra : source : acc5f6c432b709cf3519508579ae7076c6836a1f
2015-09-16 19:10:24 -04:00
Botond Ballo
376d8645a1 Bug 1200063 - Make sure TaskThrottler sends its pending repaint request eventually, even if it never receives a notification from the previous request. r=kats
This is important because the previous repaint can be a no-op, and those don't trigger notifications.

--HG--
extra : source : cb474b5a74ad026f7a1151ae8fd38cdfd538be7c
extra : intermediate-source : b4129db9a5e6a431f556fc2149131d975f3fc33d
2015-09-16 17:23:59 -04:00
Botond Ballo
73518fc4f5 Bug 1200063 - Add a generic implementation of nsITimerCallback that's usable with a lambda or other function object. r=kats
We can consider moving this to xpcom in the future.

--HG--
extra : source : 6511683402da8d3d893aecf6c39babab639a7daf
extra : intermediate-source : a84022dd2c07d269b6b4c6004a2ac4613486a760
2015-09-16 20:29:41 -04:00
Botond Ballo
3ec0663f3b Bug 1200063 - Share a paint throttler between APZCs in the same layers id. r=kats
In this process, TaskThrottler is made reference-counted.

--HG--
extra : source : 68295d4d1616e257732b8f2e8dd46c24debc8626
extra : intermediate-source : 2cd0c4caec06689c5325e23006d2cb14d40c5b5c
2015-09-16 14:45:07 -04:00
Botond Ballo
d84490b7db Bug 1200063 - Make APZCTreeManager the place where GetFrameTime() can be overridden. r=kats
--HG--
extra : source : b9e4b80438234e98f9304a6e29f0f4b9b8eb58a8
extra : intermediate-source : 3c88311ea92fef66479c08cd6b160de82d393249
2015-09-16 14:58:16 -04:00
Benoit Girard
2881f47a4c Bug 1189565 - Only factor in the async zoom change. r=kats
--HG--
extra : commitid : CjuuLbwyk5M
2015-09-16 13:42:24 -04:00
Masayuki Nakano
683794135c Bug 895274 part.244 Rename NS_TOUCH_CANCEL to eTouchCancel r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
51d7268995 Bug 895274 part.243 Rename NS_TOUCH_END to eTouchEnd r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
52a7afe36c Bug 895274 part.242 Rename NS_TOUCH_MOVE to eTouchMove r=smaug 2015-09-15 00:14:35 +09:00
Masayuki Nakano
7a48a6f2ab Bug 895274 part.241 Rename NS_TOUCH_START to eTouchStart r=smaug 2015-09-15 00:14:34 +09:00
Botond Ballo
b979ad25d3 Bug 1202312 - Use mozilla::Function for the ContentReceivedInputBlock callback. r=kats
--HG--
extra : source : d0d8d51c89955d70c72591b424e18790973e8805
2015-09-11 12:52:43 -04:00
Botond Ballo
976c25b63c Bug 1202312 - Use mozilla::Function for the SetAllowedTouchBehavior callback. r=kats
--HG--
extra : source : 168244f8869806e0fb6b318a938e46b706972f94
2015-09-11 12:27:49 -04:00
Kartikaya Gupta
6630a65ba4 Bug 1201529 - Ensure that zoomable scrollframes return true from WantAsyncScroll(). r=botond
--HG--
extra : commitid : 29B0WVGYfId
2015-09-11 21:58:16 -04:00
David Anderson
6ef885ab51 Ensure scroll info layers have a dispatch-to-content region. (bug 1193557 part 2, r=kats) 2015-09-04 17:18:03 -07:00
David Anderson
4c72778d2c Backout changeset b5e6116756b6 (wrong bug number). 2015-09-04 17:44:23 -07:00
David Anderson
51c747a7db Add a test case for bug 1193557, r=kats. 2015-09-04 17:18:11 -07:00
David Anderson
02e78d587c Ensure scroll info layers have a dispatch-to-content region. (bug 1193641 part 2, r=kats) 2015-09-04 17:18:03 -07:00
Michael Pruett
f912c6affe Bug 1201277 - Replace functors with lambdas in APZCTreeManager. r=botond
--HG--
extra : source : 264ed23109b0ee2e8f12ae77d969bb1a26504fdd
extra : amend_source : 2ed03a71a24ae3386b41feba0d5ae9d7b5e53ffb
2015-09-03 23:09:46 -05:00
Masayuki Nakano
811d0fac7e Bug 895274 part.81 Rename NS_DRAGDROP_OVER to eDragOver r=smaug 2015-09-02 15:08:02 +09:00