Commit Graph

216 Commits

Author SHA1 Message Date
Kartikaya Gupta
a8af23fed6 Bug 1052063 - Prevent creating multiple APZC instances for the same ScrollableLayerGuid. r=botond 2014-08-19 21:17:08 -04:00
Botond Ballo
ffebd18f0b Bug 923512 - Introduce strongly-typed coordinate classes. r=kats,Bas
--HG--
extra : rebase_source : 22e5fe577ea503aede765c70e16c0bf875c4a9fd
2014-08-19 13:08:16 -04:00
Botond Ballo
7d1b3578fc Bug 1025436 - Return true from AsyncPanZoomController::AdvanceAnimations() if one of the deferred tasks started a new animation. r=kats
--HG--
extra : rebase_source : 82978c55141b9a3ef05dff2273edd5c84dace479
2014-08-20 14:28:05 -04:00
Botond Ballo
98bf9dbd8d Bug 1042974 - Dispatch flings to the right scrollable element in the presence of scrollgrab. r=kats
--HG--
extra : rebase_source : b2282c8fb958d91160d7b89790baf97ada591804
2014-08-18 16:12:43 -04:00
Botond Ballo
cd5407cec3 Bug 923512 - Transition the TransformTo<>() functions from gfx3DMatrix to Matrix4x4. r=kats
--HG--
extra : rebase_source : 3a82faa2e95b889cb19db5cc24e24d74e6498f08
2014-08-06 12:52:04 -04:00
Botond Ballo
4f6c0d9b1d Bug 1055361 - Disable overscrolling during panning. r=kats
--HG--
extra : rebase_source : 53bb4d8f1e297059ea1a9a0d6994fcd45eca84d7
2014-08-19 12:55:28 -04:00
Botond Ballo
6f4fcc90af Bug 1039992 - Move the overscroll handoff chain into AsyncPanZoomController and have one per touch block or pan gesture. r=kats,bjacob,mstange
--HG--
rename : gfx/layers/apz/src/TouchBlockState.h => gfx/layers/apz/src/InputBlockState.h
extra : rebase_source : ee68595aa21b696de1a0fbb8e6c161022a88ba3d
2014-08-18 16:12:11 -04:00
Aryeh Gregor
60fbc97021 Bug 1053190 - Reduce unnecessary inclusion of nsINode.h in headers; r=ehsan 2014-08-18 17:44:50 +03:00
Harshit Harchani
f2bdad18c7 Bug 927946 - Add all APZC preferences to all.js. r=botond
--HG--
extra : rebase_source : d96f4aea65b40490d4cc7f8ec8704a2a2f7ef4b8
2014-08-13 01:35:22 +05:30
Kartikaya Gupta
1fc3c3121f Bug 1051985 - Move the APZ from ContainerLayer to Layer. r=mattwoodrow,botond 2014-08-11 20:00:37 -04:00
Kartikaya Gupta
901529a459 Bug 1051985 - Move the background color and content description from ContainerLayer to Layer. r=mattwoodrow 2014-08-11 20:00:37 -04:00
Kartikaya Gupta
78cc61d618 Bug 1051985 - Move the scroll handoff parent id from ContainerLayer to Layer. r=mattwoodrow 2014-08-11 20:00:37 -04:00
Kartikaya Gupta
40ac29fbd1 Bug 1051985 - Move the FrameMetrics from ContainerLayer to Layer. r=mattwoodrow,BenWa 2014-08-11 20:00:36 -04:00
Brian Birtles
0c90999575 Bug 1040543 part 1 - Move/Rename ElementAnimations to dom::AnimationPlayer; r=bz
This patch renames mozilla::ElementAnimations to mozilla::dom::AnimationPlayer
and moves the code from layout/style/AnimationCommon.cpp to
dom/animation/AnimationPlayer.cpp.

It also moves various helper classes needed by AnimationPlayer to
AnimationPlayer.cpp and moves them from the mozilla::css namespace to the
mozilla namespace.

Beyond that, there are no functional changes contained in this patch.

The renaming of various members and variables that used to refer to
ElementAnimation objects but now refer to AnimationPlayer objects--to give them
a more appropriate name--is performed in a subsequent patch.

--HG--
rename : layout/style/AnimationCommon.cpp => dom/animation/AnimationPlayer.cpp
rename : layout/style/AnimationCommon.h => dom/animation/AnimationPlayer.h
2014-08-10 17:06:44 +10:00
Kartikaya Gupta
9b04a5f239 Bug 1043719 - Cancel pending gesture timeouts when a cancel is received. r=botond 2014-08-05 11:51:32 -04:00
Kartikaya Gupta
88899aa700 Bug 1048888 - Initialize member variables to nullptr. r=botond 2014-08-05 11:51:31 -04:00
Ed Morley
9636fff474 Backed out changeset e76cbce3289a (bug 1043719) for gtest crashes 2014-08-04 16:32:20 +01:00
Kartikaya Gupta
8b65f6ccbd Bug 1043719 - Cancel pending gesture timeouts when a cancel is received. r=botond 2014-08-01 23:08:00 -04:00
Masayuki Nakano
fbbc8bd11e Bug 1046101 part.18 Rename NS_TOUCH_EVENT to eTouchEventClass r=smaug 2014-08-04 14:28:53 +09:00
Masayuki Nakano
00f048e7cd Bug 1046101 part.1 Rename nsEventStructType to mozilla::EventClassID r=smaug 2014-08-04 14:28:46 +09:00
Kartikaya Gupta
a75afd077b Bug 1036985 - Change the return value of APZCTM::ReceiveInputEvent to return more useful information. r=botond 2014-08-01 16:24:50 -04:00
Botond Ballo
e2b30297a4 Bug 1023557 - Store the content description in ContainerLayer instead of FrameMetrics. r=kats,BenWa 2014-07-31 16:11:47 -04:00
David Zbarsky
14c6e4a712 Bug 952977: More gfx::Matrix cleanup in APZC r=nical 2014-08-01 08:31:49 -04:00
David Zbarsky
79ec6f6bad Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-08-01 08:31:46 -04:00
Botond Ballo
907f789627 Bug 1046904 - Identify scrollgrab layers in the APZC tree log. r=kats
--HG--
extra : rebase_source : 7cf38fbe7d34b8cc5130d79f868dcef58b044e06
2014-07-31 13:49:46 -04:00
Kartikaya Gupta
a1aac133a1 Bug 1043689 - Cancel state in the GEL when processing a cancelled touch block. r=botond 2014-07-31 14:21:49 -04:00
Kartikaya Gupta
dc79f33f56 Bug 1046428 - Remove unneeded constant. r=botond 2014-07-31 09:04:35 -04:00
Kartikaya Gupta
0c230c8328 Bug 1046292 - Add a max-wait timeout to TaskThrottler to robustify against it getting stuck. r=botond 2014-07-31 09:04:34 -04:00
Botond Ballo
512351e417 Bug 1046013 - Fix APZ hit testing when root APZC is overscrolled and has siblings. r=kats
--HG--
extra : rebase_source : a2a0e143c70b3d8c2188ca281d2372d969d8c06b
2014-07-30 15:11:20 -04:00
Kartikaya Gupta
bdbb62eb95 No bug - Fix for non-unified build when APZC logging is enabled. r=me and DONTBUILD because NPOTB 2014-07-30 11:05:48 -04:00
Wes Kocher
3c155637a3 Backed out 11 changesets (bug 952977) for reftest-no-accel failures
Backed out changeset ea2367c19da3 (bug 952977)
Backed out changeset c401c8748eb3 (bug 952977)
Backed out changeset a93e9ff1043b (bug 952977)
Backed out changeset 765b7f67163e (bug 952977)
Backed out changeset 3d8cf4f5777f (bug 952977)
Backed out changeset 8993710a3ab3 (bug 952977)
Backed out changeset 1298c39b745a (bug 952977)
Backed out changeset be0b899fbe5e (bug 952977)
Backed out changeset f69bea1f1feb (bug 952977)
Backed out changeset 1a745777f07e (bug 952977)
Backed out changeset 5ad1d18dfe17 (bug 952977)
2014-07-29 18:58:46 -07:00
David Zbarsky
30b97efa59 Bug 952977: More gfx::Matrix cleanup in APZC r=nical 2014-07-29 19:18:51 -04:00
David Zbarsky
e58cb94cdf Bug 952977: More gfx::Matrix cleanup in AsyncCompositionManager r=nical 2014-07-29 19:18:49 -04:00
Kartikaya Gupta
d03e0ec72c Bug 973096 - When computing the hit test area for an APZC, remove the visible regions of layers obscuring it. r=botond 2014-07-25 08:27:43 -04:00
Ed Morley
a1c6e86050 Backed out changeset a0a40196da87 (bug 973096) for non-unified build failures 2014-07-25 16:27:21 +01:00
Kartikaya Gupta
e7d45b9787 Bug 973096 - When computing the hit test area for an APZC, remove the visible regions of layers obscuring it. r=botond 2014-07-25 08:27:43 -04:00
Kartikaya Gupta
4f1f08458d Bug 1042734 - Don't mis-handle events that are coming in with the same timestamp. r=botond 2014-07-24 16:58:54 -04:00
Kartikaya Gupta
2a4d9ff565 Bug 1039159 - Clear the velocity queue on touch-cancel. r=botond 2014-07-23 17:08:55 -04:00
Kartikaya Gupta
428b5f7f65 Bug 1039159 - Assert mVelocityQueue can only be touched on the controller thread. r=botond 2014-07-23 17:08:55 -04:00
Kartikaya Gupta
1ee439efe5 Bug 1039159 - Ensure we don't touch the velocity queue from the compositor thread. Thanks to :jerry for finding this. r=botond 2014-07-23 17:08:54 -04:00
Botond Ballo
1b15593ea1 Bug 1040226 - Avoid getting stuck after overscroll is handed off to an APZC later in the handoff chain. r=kats 2014-07-21 14:36:37 -04:00
Botond Ballo
7d8537d1bf Bug 1041471 - Call CancelAnimation() on a touch-cancel. r=kats 2014-07-21 15:42:58 -04:00
Kartikaya Gupta
0df3a31848 Bug 1040906 - Replace the out-param on matrix conversion helpers with a return value. r=Bas 2014-07-22 09:12:14 -04:00
Kartikaya Gupta
a1cc48a946 Bug 1034240 - Trigger an update of the displayport margins on a new APZC if the content already has margins. r=botond 2014-07-21 14:00:52 -04:00
Botond Ballo
1506934be8 Bug 1030803 - Account for floating-point error in Axis::ScaleWillOverscrollAmount(). r=kats 2014-07-17 14:45:57 -04:00
Kartikaya Gupta
eb5dd62970 Bug 1039979 - Restore and improve handling of the stop-fast-fling-on-touchdown behaviour. r=botond 2014-07-17 13:41:54 -04:00
Kartikaya Gupta
9395a735f9 Bug 1039979 - When cancelling animations based on user input, cancel animations on the entire handoff chain. r=botond 2014-07-17 13:41:53 -04:00
Kartikaya Gupta
183fd7d774 Bug 1039979 - Cancel animations when a finger goes down without waiting for the content response. r=botond 2014-07-17 13:41:52 -04:00
Kartikaya Gupta
48c7bab023 Bug 1015644 - Follow-up to fix a logging-only build error. r=me and DONTBUILD because NPOTB 2014-07-17 09:27:34 -04:00
Kartikaya Gupta
b3cc44d937 Bug 1009733 - Follow-up to fix a logging-only build error. r=me and DONTBUILD because NPOTB 2014-07-17 05:58:48 -04:00
Kartikaya Gupta
80ae1b2f26 Bug 995475 - Clear the active element on touch end, if the touch wasn't a click. r=botond 2014-07-16 23:06:36 -04:00
Andrew McCreight
6f4fa3efae Bug 1038855, part 1 - Use an nsRefPtr for AsyncPanZoomController::mSharedFrameMetricsBuffer. r=bjacob 2014-07-16 12:39:03 -07:00
Kartikaya Gupta
e8ab1883b2 Bug 1009733 - Add thread safety checks for dealing with touch input blocks. r=botond 2014-07-16 12:03:06 -04:00
Kartikaya Gupta
00ac0a2945 Back out c4bb900163fc (part 3 of bug 1009733) for breaking windows builds. r=backout on a CLOSED TREE 2014-07-16 08:57:06 -04:00
Kartikaya Gupta
985e356694 Bug 1009733 - Add thread safety checks for dealing with touch input blocks. r=botond 2014-07-16 08:33:50 -04:00
Kartikaya Gupta
e7190ff526 Bug 1009733 - Rewrite much of the APZC input block handling code. r=botond 2014-07-16 08:33:50 -04:00
Jeff Muizelaar
2b38307221 Bug 1038727 - Convert APZ from nsAutoPtr to UniquePtr. r=kats
--HG--
rename : browser/components/loop/content/shared/js/views.jsx => browser/components/loop/content/shared/js/views.js
rename : toolkit/webapps/tests/test_custom_origin_uninstall_install.xul => toolkit/webapps/tests/test_custom_origin.xul
extra : rebase_source : 2448597696cbf24512b54b6acbdfb52b71995dde
2014-07-15 13:44:37 -04:00
Botond Ballo
6770de9ed0 Bug 1034376 - Avoid APZC being stuck in overscrolled state when CancelAnimation() is called during panning. r=kats
--HG--
extra : rebase_source : bbc3a02d6be7081be77b58cb2795aa57ce794002
2014-07-14 12:54:41 -04:00
Botond Ballo
387a9a37bd Bug 1037191 - Have APZCTreeManager::GetTargetAPZC(point) always return nullptr if an overscrolled APZC is matched. r=kats
--HG--
extra : rebase_source : 2714fa4480ccab42acde9a6dfa36f1d4424bb630
2014-07-10 18:30:13 -04:00
Kartikaya Gupta
a75ff9e2b1 Bug 1037019 - Remove the mTouchActionPropertyEnabled flag in APZC and flip the pref directly in the tests. r=botond 2014-07-11 08:25:13 -04:00
Kartikaya Gupta
30f43e9c10 Bug 1036444 - Kill touchenter and touchleave events. r=smaug 2014-07-09 10:27:00 -04:00
Botond Ballo
fdf0b38e86 Bug 1031067 - Clear overscroll at the end of a pinch. r=kats
--HG--
extra : rebase_source : 2484d2513aab9d9d321fe6d42a1face685b45ba0
2014-07-08 17:07:12 -04:00
Kartikaya Gupta
b6fff2a413 Bug 1027593 - Ensure we updated the displayport margins when the scrollable rect changes. r=botond 2014-07-08 18:01:02 -04:00
Kartikaya Gupta
d2bd117d55 Bug 1035356 - Make ReceiveInputEvent(InputData...) do in-place modifications of the event to DOM space. r=mstange r=botond 2014-07-08 14:55:52 -04:00
Matt Woodrow
ad3a5e5b81 Bug 1031948 - Cull points that have w <= 0 when untransforming layer coordinates. r=bjacob 2014-07-08 16:55:42 +12:00
Kartikaya Gupta
11ad7352b3 Bug 1035228 - Refactor FrameMetrics logging so that it's all in one place. r=BenWa 2014-07-07 15:48:16 -04:00
Kartikaya Gupta
ccf8c8beb4 Bug 1034258 - Change mCompositionBounds to be a ParentLayerRect instead of a ParentLayerIntRect. r=Cwiiis 2014-07-04 08:12:41 -04:00
Kartikaya Gupta
8e40be5d1f Bug 1033398 - Ensure we request composites while overscroll is being reduced by touch input. r=drs 2014-07-03 18:26:04 -04:00
Kartikaya Gupta
f9fb311a42 Bug 1027851 - Ensure the displayport size always includes the danger zone. r=Cwiiis 2014-07-03 18:26:03 -04:00
Kartikaya Gupta
abe4af6deb Bug 1030221 - Make sure to clear overscroll if we cancel a fling. r=drs 2014-06-26 18:49:11 -04:00
Kartikaya Gupta
9a0452ea47 Bug 1030221 - Move animation Sample functions into the class definition. r=drs 2014-06-26 18:49:11 -04:00
Kartikaya Gupta
57b791cdc7 Bug 1022956 - When fling velocity is high, don't let tap gestures trigger clicks to content. r=drs r=Bas 2014-06-26 18:37:44 -04:00
Carsten "Tomcat" Book
8e86bf906b Merge mozilla-central to mozilla-inbound 2014-06-26 15:51:31 +02:00
Kartikaya Gupta
cb116c4bd1 Bug 1030181 - Share code for dealing with WidgetTouchEvent and MultiTouchInput. r=drs r=smaug 2014-06-25 20:11:20 -04:00
kylma
fa8357c97b Bug 1001582 - HasScrollgrab transitioned from private to public member, getter/setter added. r=kats 2014-06-25 19:16:27 -04:00
Kartikaya Gupta
2b6f358c9a Bug 1027309 - When switching to a new APZC for a touch input block, cancel state in the old APZC. r=drs 2014-06-25 19:13:59 -04:00
Kartikaya Gupta
f82c9482ec Bug 1027309 - Ensure we build the overscroll handoff chain based on the APZC receiving input. r=drs 2014-06-25 19:13:53 -04:00
Kartikaya Gupta
330c220f31 Bug 1027309 - Add some more logging in APZ code. r=drs 2014-06-25 19:13:26 -04:00
Gijs Kruitbosch
69b99988f1 Bug 1030115 - fix apz.printtree caching to use gfxPrefs. r=kats, bas 2014-06-25 16:12:32 +01:00
Kartikaya Gupta
d23f6e9b7c Bug 1024126 - Fix rounding errors and add a danger zone to the B2G AboutToCheckerboard heuristic function. r=Cwiiis 2014-06-23 20:54:32 -04:00
Birunthan Mohanathas
bc0233fe47 Bug 1026535 - Fix mismatched class/struct tags. r=ehsan 2014-06-18 17:57:51 -07:00
Benoit Jacob
c957e59732 Bug 1027251 - Fix or whitelist dangerous public destructors in gfx/ - r=jrmuizel 2014-06-18 22:28:59 -04:00
Botond Ballo
5c89783761 Bug 1019996 - Apply overscroll effect to fixed and sticky layers. r=kats, r=Cwiiis 2014-06-12 20:27:32 -04:00
David Zbarsky
f3172735cb Bug 1015644 - Clean up ActiveElementManager r=botond 2014-06-16 18:50:16 -04:00
Botond Ballo
e8a12a2e30 Bug 1022719 - Ignore additional touches when in overscrolled state. r=kats 2014-06-10 19:43:20 -04:00
Botond Ballo
39d2cd0d1b Bug 1022719 - Further improve const correctness in AsyncPanZoomController. r=kats 2014-06-12 18:17:26 -04:00
Kartikaya Gupta
6ab27b8f7a Bug 1022577 - Ensure we flush the repaint _after_ taking the scroll offset from content. r=botond 2014-06-11 16:51:30 -04:00
Ehsan Akhgari
ac9615fa0d Bug 1021290 - More Atomics.h build fixes for clang-cl. r=froydnj
This is basically more of bug 932454
2014-06-09 14:49:34 -04:00
Kartikaya Gupta
59ddabde7d Bug 1021384 - Ensure animations are cancelled before destroying the APZC instance. r=botond 2014-06-08 16:37:34 -04:00
Botond Ballo
54f476c0a8 Bug 1019999 - Clear overscroll if snap-back animation is cancelled. r=kats
--HG--
extra : source : 20ace5785615d1cc7d0edbe7e09f8691166c6166
2014-06-06 13:58:48 -04:00
Markus Stange
5a4c848878 Bug 944938 - Add event structs and APZ event handling for pan gesture events that can be used for Mac touchpad scrolling. r=kats 2014-06-07 00:49:49 +02:00
Botond Ballo
81fc6320fa Bug 1018255 - Use spring physics for snap-back animation. r=kats
--HG--
extra : source : f7f4c40fc818c2342fe6c49c0351c1573f6e9f3d
2014-06-03 13:59:35 -04:00
Botond Ballo
4bcd1d61cd Bug 1018255 - Make the translation (in the direction of overscroll) more pronounced than the zoom. r=kats
--HG--
extra : source : da6418a2a57e4665b2f03e84ff50052902658f45
2014-06-03 18:03:55 -04:00
Botond Ballo
f940812cbe Bug 1018255 - Fix a short-circuit evaluation bug in OverscrollSnapBackAnimation::Sample. r=kats
--HG--
extra : source : c01a9ce7adb6693dbf5819fe853d4c7076bbd75a
2014-06-03 17:31:25 -04:00
Botond Ballo
7733d1d4eb Bug 1018255 - Don't bother doing the computations in ApplyOverscrollEffect if we are not overscrolled. r=kats
--HG--
extra : source : 028af891515ee1093e889d20142f989cb19621b2
2014-06-03 16:20:50 -04:00
Botond Ballo
b6bd6e60b1 Bug 1018255 - Stop fling more quickly when overscrolled. r=kats
--HG--
extra : source : 79355b184bc52616567cc16d8f8c61ab31789d67
2014-06-05 15:16:14 -04:00
Brian Birtles
194b6cc3b7 Bug 77992 part 1.0 - Add timeStamp to WidgetEvent; r=smaug
This patch adds a timeStamp member to WidgetEvent alongside the existing 'time'
member. In the future we would like to remove 'time' and just keep timeStamp but
that depends on it being web-compatible. For now we introduce both members
side-by-side. Later we will add a pref to determine which one to return. If no
compatibility issues arise we will remove 'time' altogether.
2014-06-06 14:29:49 +09:00
Sayan Paul
dc5f992034 Bug 1016404 - Rename APZC_LOG in APZCTreeManager to avoid unified build conflicts. r=kats 2014-06-04 17:22:35 -04:00
Phoebe Chang
4286f5c0d3 Bug 924692 - Part 4: Hooks up event handling to TouchCaret; r=roc, bugs 2014-06-03 15:08:54 +08:00
Nick Lebedev
e0ece671d8 Bug 1014838 - Add testing of the apzc state correctness after tap gestures. r=kats, r=botond 2014-05-29 23:00:31 -07:00