Kartikaya Gupta
8ac561eb1d
Bug 1145084 - Ensure that the 300ms content timeout in the APZ code also applies to the touch-action allowed behaviours. r=botond
2015-06-01 17:04:15 -04:00
Kartikaya Gupta
abff2dd438
Bug 1169689 - Make sure we don't end up with a spurious velocity if we're not going to be panning. r=botond
...
This patch also removes an unnecessary call to StartTouch, since the start pos
is not used when computing the pan delta any more.
2015-06-01 09:51:16 -04:00
Carsten "Tomcat" Book
4542803729
Backed out changeset 99011d150a1d (bug 1163572) for b2g ics debug bustage on a CLOSED TREE
2015-06-01 13:03:30 +02:00
Danilo Cesar Lemes de Paula
a96537264b
Bug 1163572 - Override ChromeProcessController::RequestContentRepaint to detect root-frame updates. r=botond
...
--HG--
extra : rebase_source : ce40f9e8eb5f4ace49cccef266ebe3ea562c9c5a
2015-05-28 06:54:00 +02:00
Timothy Nikkel
a86398c9d5
Bug 1168630. Part 5. If GetAPZCAtPoint hit a layer but did not find an APZC on the ancestor chain with the same layers id then return the root APZC of the same layers id. r=botond
...
This requires use to search the hit testing tree to find the root APZC (which we require to be there).
2015-05-31 14:44:41 -05:00
Timothy Nikkel
3670812937
Bug 1168630. Part 4. Rename AsyncPanZoomController::IsRootForLayersId to HasNoParentWithSameLayersId. r=botond
...
The function did not tell you if the APZC was the root for the layers id. It just told you if it had no parent. Which are different things.
Since IsRootForLayersId didn't do what it was expected to, the users of HasNoParentWithSameLayersId will be audited and then removed or changed to be correct by bug 1158424.
2015-05-31 14:44:41 -05:00
Timothy Nikkel
17048184a5
Bug 1168630. Part 3. Add IsLayersIdRoot to frame metrics. r=botond
...
This field tells us if this frame metrics should be considered the root APZC for its layers id. Without this there doesn't seem to be a way to compute this from just the layers tree.
2015-05-31 14:44:41 -05:00
Timothy Nikkel
316e76fb96
Bug 1168630. Part 2. Only return an APZC from GetAPZCAtPoint that has the same layers id as the layer that was hit. r=botond
...
In a future patch we will look for the root APZC for the same layers id so that this doesn't make us return null.
2015-05-31 14:44:40 -05:00
Timothy Nikkel
53918bdd59
Bug 1168630. Part 1. Add layers id to hit test node. r=botond
...
When the ancestors of a hit testing node do not have an APZC we will need the layers id of the layer that was hit in order to find the root APZC for that layers id.
2015-05-31 14:44:40 -05:00
Kartikaya Gupta
56c9c4c04a
Bug 1169270 - Minor style fixes. r=dvander
2015-05-29 11:04:22 -04:00
Kartikaya Gupta
9fe34a5df1
Bug 1166871 - Add a test. r=botond
2015-05-29 11:04:22 -04:00
Kartikaya Gupta
cda8751311
Bug 1166871 - Always force a repaint before handling a wheel event so that we don't untransform it into some other scrollframe. r=botond
2015-05-29 11:04:22 -04:00
Birunthan Mohanathas
180b572edb
Bug 968520 - Add mozilla::fallible to FallibleTArray::AppendElement calls. r=froydnj
2015-05-28 11:07:44 -07:00
David Anderson
bb8d53f35f
Move the APZ scroll frame clip onto FrameMetrics. (bug 1148582 part 3, r=mstange,tn)
2015-05-26 12:40:24 -07:00
Kartikaya Gupta
de0d358206
Bug 1167721 - Ensure we trigger a repaint when dropping velocity to zero in CancelAnimation. r=botond
2015-05-25 15:32:20 -04:00
Kartikaya Gupta
58b0d94d59
Bug 1151617 - Add async-zooming tests for async scrollbar positioning. r=tn,botond
2015-05-24 16:48:26 -04:00
Timothy Nikkel
f3507bdc3b
Bug 1160642. Add reftest-async-zoom to apply an async zoom before taking snapshot. r=dbaron
2015-05-24 16:48:26 -04:00
Kartikaya Gupta
029439cade
Bug 1164274 - Disable the wheel-scroll test on Mulet for intermittent failures. r=mstange
2015-05-22 12:01:52 -04:00
Kartikaya Gupta
b54dc47f24
Back out 2 csets for bug 1163832 for emulator crashtest failures. r=me
...
CLOSED TREE
2015-05-22 07:51:55 -04:00
Kartikaya Gupta
86ed888daa
Bug 1163832 - Add an API to flush pending APZ repaint requests and dispatch a notification upon completion. r=botond
2015-05-22 06:42:08 -04:00
Maksim Lebedev
43ec4fa0cc
Bug 1162009 - Add TOUCH_CANCEL sending on e10s. r=kats
2015-05-14 08:16:00 -04:00
Kartikaya Gupta
c18b147cf7
Bug 1151617 - Add some basic reftests for async scrollbar positioning on B2G and Linux w/APZ. r=tn,botond
2015-05-16 09:11:04 -04:00
Botond Ballo
9f7ceff4d6
Bug 1164557 - Weed out spurious calls to Axis::OverscrollBy() caused by rounding error r=kats
...
--HG--
extra : source : 9beb85aca6a9398ad05d937f2b6096fb859a1d63
2015-05-13 15:48:50 -04:00
Botond Ballo
9c6dd7f1ef
Bug 1164557 - Use COORDINATE_EPSILON in IsZero(). r=kats
...
--HG--
extra : source : fe7548a3554a7d6033147f616612005a8242f7a0
2015-05-13 15:48:21 -04:00
Botond Ballo
441122c472
Bug 1164557 - Do not start an overscroll animation if one is already running. r=kats
...
--HG--
extra : source : cd74929b4cc41346eb1901b4b9307dea18701164
2015-05-13 15:47:24 -04:00
Botond Ballo
2904d8d719
Bug 1159985 - If only one component of a fling is in overscroll, continue the fling in the other component. r=kats
...
--HG--
extra : source : dd5f73b96d7de9cc16cdb498e22930aa54a8a103
2015-05-11 22:27:48 -04:00
Botond Ballo
0fd5163a65
Bug 1163845 - Unify handling of time in APZ gtests. r=kats
...
--HG--
extra : rebase_source : f7b50c31bc39ed0a2d2d26250a0dc36355c0cf05
extra : source : 64cabb256acb8b30e4d67f78e94b8f6187e0e58d
2015-05-15 12:45:27 -04:00
Timothy Nikkel
5c4779f4b5
Bug 1162648. When updating layout with the latest async values from the APZC do the scrolling last because it can flush layout. r=botond,kats
...
If we flush layout after the new scroll position clamping scroll port size but the old resolution then the scrollbars will be placed in the wrong spot.
2015-05-13 15:52:09 -05:00
Kartikaya Gupta
bbd234182a
Bug 1161634 - Enable the test_wheel_scroll on Linux as well. r=mstange
2015-05-11 17:21:37 -04:00
Kartikaya Gupta
8e6dbbf17c
Bug 1161592 - If we don't get a target frame from the touch point try using the root scrollable frame. r=botond
2015-05-08 13:51:35 -04:00
Kartikaya Gupta
e237a366e0
Bug 1160566 - Make FrameMetrics.mCompositionBounds private and add a getter/setter for it. r=botond
2015-05-07 14:44:03 -04:00
Carsten "Tomcat" Book
5568f37fd2
Backed out changeset 7141b7088a89 (bug 1161634)
2015-05-06 17:06:46 +02:00
Kartikaya Gupta
05c5790ec1
Bug 1161634 - Enable the test_wheel_scroll on Linux as well. r=mstange
2015-05-06 08:36:54 -04:00
Kartikaya Gupta
6180ee95a1
Bug 1161206 - Add a scrolling test with native mousewheel event synthesization. r=mstange
2015-05-05 14:45:11 -04:00
Kartikaya Gupta
ad505c6fa4
Bug 1161040 - Add some assertions to guard against infinite loops in the handoff chains. r=botond
2015-05-05 08:36:52 -04:00
Wes Kocher
b492021bca
Merge m-c to inbound a=merge
2015-05-01 17:23:32 -07:00
Ryan VanderMeulen
d6155ddbf6
Merge m-c to fx-team. a=merge
2015-05-01 13:00:21 -04:00
Danilo Cesar Lemes de Paula
8b923d9267
Bug 1156401 - Fix ContextMenu handling when building Fennec with C++ APZ. r=kats, r=botond
...
This commit deals with the situation where there's no scrollable element
on a fennec's page. It uses the Top Most root element (Xul viewport)
instead.
So this fixes the situation when the tap/click was not being send to the
correct dom element.
2015-04-30 06:09:00 -04:00
Botond Ballo
bd33808124
Bug 1152051 - Ensure that destroying an overscroll animation always clears the state Axis tracks about it. r=Cwiiis
...
--HG--
extra : source : efa549fdff2231af8e4212c95bd100f0f0bf0ec4
2015-04-29 18:54:10 -04:00
Kartikaya Gupta
87abd92743
Bug 1148350
- Have ConvertToGecko use a live screen-to-apzc transform to avoid transform mismatches. r=botond
2015-04-30 14:30:38 -04:00
Kartikaya Gupta
03de57ce9a
Bug 1159455 - Fix assorted debugging strings in APZ code. r=botond
2015-04-30 14:30:37 -04:00
Kartikaya Gupta
ca4c4fda69
Bug 1158323 - Make sure we set a base rect on document elements that have margins set. r=tn
2015-04-29 07:22:27 -04:00
David Anderson
37a8896bd6
Fix APZ scroll wheel animations often prematurely ending on the first frame. (bug 1157409, r=kats)
...
--HG--
extra : rebase_source : e66326c8fe42c4c5de3c0f66ca751db0e76c4735
2015-04-28 11:01:04 -07:00
Kartikaya Gupta
bdf3a1b564
Bug 1013412 - End wheel transactions as soon as possible if content is doing a prevent-default. r=dvander
2015-05-01 13:29:44 -04:00
Milan Sreckovic
476a1225bf
Bug 1158340 - Refactor RedistributeDisplayPortExcess. r=kats
2015-04-27 12:06:11 -04:00
Botond Ballo
10652e0e0c
Bug 1151663 - Fix test bustage caused by incorrect mochitest.ini file, on a CLOSED TREE. r=bustage
2015-04-23 00:58:52 -04:00
Botond Ballo
4d33259ec6
Bug 1151663 - New mochitest for this bug. r=kats
...
--HG--
extra : rebase_source : 3eb1d9265e9031f8ae988a436b2419c49d45f4d2
extra : source : 921462f2db07e14aebdfb196f9031509d16837a9
2015-04-15 16:41:09 -04:00
Botond Ballo
b43a0ba6b9
Bug 1151663 - Fix reconstruction of APZC tree structure in APZ mochitests. r=kats
...
--HG--
extra : rebase_source : 7cc843d85bbd9dc388c22bb89d62b4ad5bc5926f
extra : source : 493ad40e3835b71aed6803d8f8bf1edaacdfd561
2015-04-20 21:41:30 -04:00
Botond Ballo
a3ff2cb2b3
Bug 1151663 - Extract some helper functions for writing APZ mochitests into a separate file. r=kats
...
--HG--
extra : rebase_source : efb4a08fa85f1d520e2ea2ccc50efc4c2f941c85
extra : source : b515fe7b2aa7af9b675c0a429dd009985b67725e
2015-04-20 21:40:17 -04:00
Andrea Marchesini
ade2831035
Bug 1156632 - Remove unused forward class declarations - patch 6 - the rest of the tree, r=ehsan
2015-04-22 08:29:24 +02:00
Brian Birtles
5c7929fd2a
Bug 1154615
part 1 - Rename AnimationPlayer to Animation in WebIDL; r=smaug
...
This patch is a fairly minimal rename of the AnimationPlayer interface. It
leaves a bunch of local variables and helper classes still using the word
"player". These will be addressed in subsequent patches that don't require DOM
peer review.
--HG--
rename : dom/animation/AnimationPlayer.cpp => dom/animation/Animation.cpp
rename : dom/animation/AnimationPlayer.h => dom/animation/Animation.h
rename : dom/webidl/AnimationPlayer.webidl => dom/webidl/Animation.webidl
2015-04-21 10:22:09 +09:00
Kartikaya Gupta
761a73e844
Bug 1146024 - Followup to fix non-android bustage on a CLOSED TREE. r=bustage
2015-04-20 16:25:52 -04:00
Danilo Cesar Lemes de Paula
d7e8379673
Bug 1146024 - Fix up input routing for APZ on Fennec. r=kats
...
nsWindow::ProcessUntransformedAPZEvent is the method that
deals with APZ Input, so it should receive it's events
2015-04-20 16:16:17 -04:00
Botond Ballo
899a1634f6
Bug 1152479 - In C++ APZ code, use nsContentUtils rather than nsIDOMWindowUtils to send key and mouse events. r=kats
...
--HG--
extra : source : c989db3f7a0a41682429a0febfa8c51f2bb99e7f
2015-04-15 03:09:46 -04:00
David Anderson
b63f22721a
When APZ is enabled, only apply the root scroll delta override to root frames. (bug 1155800, r=kats)
2015-04-19 09:30:39 -04:00
Cameron McCormack
84ff03514a
Bug 1154149 - Remove nsPresContext arguments from a bunch of nsStyleSet methods. r=dbaron
2015-04-17 11:09:59 +10:00
David Anderson
2b209e0cb6
Fix wheel events being misrouted in APZ-less widgets when APZ is enabled. (bug 1154734, r=kats)
...
--HG--
extra : rebase_source : 264f089cb888d806cfaf4bee93b0a5cd0e65c477
2015-04-15 12:28:47 -04:00
Botond Ballo
80b5170af7
Bug 1152479 - Do not use layout-related nsIDOMWindowUtils APIs from C++ APZ code. r=kats
...
--HG--
extra : rebase_source : 8fb4f75e5e50a1e29424d03b5c18236846a698df
extra : source : d017af70470603f970fde91c1515757e57e2d8ba
2015-04-14 16:44:59 -04:00
Botond Ballo
148a784118
Bug 1152479 - Extract the implementations of layout-related nsIDOMWindowUtils APIs used by APZ into nsLayoutUtils. r=ehsan
...
--HG--
extra : rebase_source : 175254c3f78cd06bf72e2a25da12eff7a174f87e
extra : source : 0bf92001a2f715b5c20aefc039c30e926b9789c0
2015-04-14 13:19:10 -04:00
Botond Ballo
c1f47599d8
Bug 1153711 - Do not discard a component of a fling if an APZC further in the handoff chain has room to scroll in that direction. r=kats
...
--HG--
extra : rebase_source : 5907e2817bc2ad6ae920e737a15dc12be13c2eae
2015-04-15 12:38:26 -04:00
David Anderson
c99aec898f
Fix APZ target confirmations arriving before dependent layer transactions. (bug 1154130, r=kats)
2015-04-14 12:24:32 -04:00
Ying-Ruei Liang (KK)
f17daf9c2a
Bug 1143522 - Convert Layer::mClipRect to ParentLayerIntRect. r=botond
...
Change interface of getter/setter for mClipRect,
also necessary modification for codes that use these resources.
* * *
Bundle mUseClipRect and mClipRect as Maybe<ParentLayerIntRect> mClipRect
--HG--
extra : rebase_source : ca0c60404a28b7418df88104b863760033289910
2015-04-11 22:03:00 -04:00
David Anderson
2bacc33539
Make sure that confirmed APZ wheel targets are always scrollable. (bug 1154132, r=kats)
2015-04-14 11:43:41 -04:00
David Anderson
6ed66f11dc
Don't vertically scroll APZCs that have less than one pixel of vertical scroll range. (bug 1154134, r=kats)
...
--HG--
extra : rebase_source : 61f8690c3583ccdde782ef02cc5cae45ddebb611
2015-04-14 11:37:40 -04:00
Markus Stange
83a1a05b18
Bug 1148868 - Make APZ wheel handling handle pixel scrolling on OS X. r=dvander, r=kats
...
--HG--
extra : rebase_source : 99a474406eac76a04b17a18caa9473ff6a392ea0
2015-04-13 15:45:37 -04:00
Botond Ballo
3628f147a2
Bug 1039818 - Do not allow an older APZ repaint request to clobber a newer pres shell resolution in Layout. r=kats
2015-04-10 19:34:23 -04:00
Botond Ballo
7009659de8
Bug 1152051 - During an overscroll animation, detect a peak even if a sample has a velocity of exaclty zero. r=Cwiiis
2015-04-08 19:59:14 -04:00
David Anderson
b4934d9e89
Clamp APZ wheel animations to their scrollable range. (bug 1152011 part 2, r=botond)
2015-04-12 17:47:11 -07:00
David Anderson
bbc6241cc7
Fix APZ not starting and updating wheel animations within an APZC lock. (bug 1152011 part 1, r=botond)
2015-04-12 17:46:59 -07:00
David Anderson
914703e435
Don't have a default repaint interval of "never" for APZ animations. (bug 1152138, r=botond)
2015-04-07 21:32:42 -07:00
David Anderson
921f82d97a
Request content repaints during APZ wheel animations. (bug 1152138, r=botond)
2015-04-07 18:14:40 -07:00
David Anderson
87f5649f07
Use stronger typing for GetScrollWheelDelta. (bug 1139220 part 5, r=kats)
2015-04-01 23:43:24 -07:00
David Anderson
37bd3df34f
Remove unneeded code from SmoothScrollAnimation. (bug 1139220 part 4, r=kats)
2015-04-01 23:43:20 -07:00
David Anderson
208919a3e4
Use the main-thread key spline animation logic for Desktop APZ. (bug 1139220 part 3, r=kats,kgilbert)
2015-04-01 23:42:40 -07:00
David Anderson
8c72d87fb0
Move AsyncPanZoomAnimation into its own header. (bug 1139220 part 1, r=kats)
2015-04-01 23:17:08 -07:00
Kartikaya Gupta
91536687e6
Bug 1148641 - Guard against null parameters to SendSetTargetAPZCNotification. r=botond
2015-04-02 06:57:45 -04:00
Carsten "Tomcat" Book
5d7cba0e16
Backed out changeset 5b92f3ac380c (bug 1139220) for bustage on a CLOSED TREE
2015-04-02 09:13:53 +02:00
Carsten "Tomcat" Book
dfac4e74d5
Backed out changeset fce26111e6f0 (bug 1139220)
2015-04-02 09:13:20 +02:00
Carsten "Tomcat" Book
069f2a686b
Backed out changeset 2e519e843706 (bug 1139220)
2015-04-02 09:13:13 +02:00
Carsten "Tomcat" Book
f17aaa31b2
Backed out changeset 32358e02e9ae (bug 1139220)
2015-04-02 09:13:08 +02:00
David Anderson
5135d5a42e
Use stronger typing for GetScrollWheelDelta. (bug 1139220 part 5, r=kats)
...
--HG--
extra : rebase_source : 2f96d78e41dd08cc6abddf94f1006b5bbf2177f6
2015-04-01 23:43:24 -07:00
David Anderson
6353ff31a2
Remove unneeded code from SmoothScrollAnimation. (bug 1139220 part 4, r=kats)
...
--HG--
extra : rebase_source : cb8012f590c65b1b66f81e7fcf162309f69704b6
2015-04-01 23:43:20 -07:00
David Anderson
13e12b0304
Use the main-thread key spline animation logic for Desktop APZ. (bug 1139220 part 3, r=kats,kgilbert)
...
--HG--
extra : rebase_source : 17514c0bcaf4ac61c53ab1729a5084fd55b8ee11
2015-04-01 23:42:40 -07:00
David Anderson
69a51a61ed
Move AsyncPanZoomAnimation into its own header. (bug 1139220 part 1, r=kats)
...
--HG--
extra : rebase_source : f2569ece617bd3af2b34ab9d3e2146a8f1118b58
2015-04-01 23:17:08 -07:00
Bob Owen
e4f543bb58
Bug 1119878 Part 2: Change IPC code to hold ProcessID instead of ProcessHandle. r=billm, r=dvander, r=aklotz, r=cpearce
2015-04-01 09:40:35 +01:00
David Anderson
ffa26889e9
Fix APZCs leaking when a compositor shuts down. (bug 1147681 part 2, r=kats)
...
--HG--
extra : rebase_source : a8b1f5e0cb2aa0a4a0fce9f788f5e771df3cfcd0
2015-03-26 14:24:37 -07:00
David Anderson
274c9d4c17
Allow dispatching to the APZ controller thread from any thread. (bug 1147681 part 1, r=kats)
...
--HG--
extra : rebase_source : ce0beebda151fdf5adf69e998465c684b193db75
2015-03-26 14:23:02 -07:00
David Anderson
7a289bb6d5
Fix crashes when a wheel transaction has a null confirmed apzc. (bug 1147249, r=kats)
...
--HG--
extra : rebase_source : 0c17344a9c814dc412caa21453d1b2e2ed1d8921
2015-03-26 14:15:41 -07:00
David Anderson
11dca95ed5
Fix wheel events not applying root scroll delta overrides. (bug 1147223 part 1, r=kats)
2015-03-25 18:36:41 -07:00
David Anderson
204bc78fed
Fix some full zoom FrameMetrics changes not propagating to APZ. (bug 1147648, r=botond)
2015-03-25 18:34:56 -07:00
Maksim Lebedev
9e2e275653
Bug 1143655 - Add sending NS_TOUCH_CANCEL event. r=kats
2015-03-25 12:20:20 -04:00
Kartikaya Gupta
52c482890f
Bug 1143665 - Remove the ambiguous scroll position being passed around in scroll started/stop notifications. r=roc,ehsan
2015-03-25 07:52:37 -04:00
David Anderson
1e87fb5a4b
Clamp APZ wheel event deltas to the size of a page scroll. (bug 1146676, r=kats)
2015-03-24 14:59:41 -07:00
David Anderson
0edd0b1707
Don't route wheel events through APZ if they require custom deltas. (bug 1146674, r=kats)
2015-03-24 14:58:49 -07:00
Botond Ballo
9d41c408f3
Bug 1145787 - Put a misplaced assertion into its proper place. r=kats
...
--HG--
extra : source : 04c4a02aece447cc7f6babd104b2c65070ccffdc
2015-03-20 19:21:04 -04:00
Botond Ballo
9bef23d187
Bug 1145345
- Account for a greater variety of rounding errors when comparing coordinates. r=kats
...
--HG--
extra : source : af3b6caa84116a5f95783ed9262326f4917b6b90
2015-03-20 14:02:07 -04:00
David Anderson
fba0c47c1f
Add APZ support for test.mousescroll callbacks. (bug 1142866 part 3, r=kats)
2015-03-22 00:42:26 -07:00
David Anderson
302fa4036d
End APZ wheel transactions when the mouse moves out of frame. (bug 1142866 part 2, r=kats,botond)
2015-03-22 00:42:25 -07:00
David Anderson
a0a7580fcf
Add wheel transaction support to APZ. (bug 1142866 part 1, r=kats)
2015-03-22 00:36:13 -07:00
Ehsan Akhgari
883849ee32
Bug 1145631 - Part 1: Replace MOZ_OVERRIDE and MOZ_FINAL with override and final in the tree; r=froydnj
...
This patch was automatically generated using the following script:
function convert() {
echo "Converting $1 to $2..."
find . \
! -wholename "*/.git*" \
! -wholename "obj-ff-dbg*" \
-type f \
\( -iname "*.cpp" \
-o -iname "*.h" \
-o -iname "*.c" \
-o -iname "*.cc" \
-o -iname "*.idl" \
-o -iname "*.ipdl" \
-o -iname "*.ipdlh" \
-o -iname "*.mm" \) | \
xargs -n 1 sed -i -e "s/\b$1\b/$2/g"
}
convert MOZ_OVERRIDE override
convert MOZ_FINAL final
2015-03-21 12:28:04 -04:00