Commit Graph

137 Commits

Author SHA1 Message Date
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
Cameron McCormack
84ff03514a Bug 1154149 - Remove nsPresContext arguments from a bunch of nsStyleSet methods. r=dbaron 2015-04-17 11:09:59 +10: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
David Anderson
c99aec898f Fix APZ target confirmations arriving before dependent layer transactions. (bug 1154130, r=kats) 2015-04-14 12:24:32 -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
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
Kartikaya Gupta
91536687e6 Bug 1148641 - Guard against null parameters to SendSetTargetAPZCNotification. r=botond 2015-04-02 06:57:45 -04: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
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
fba0c47c1f Add APZ support for test.mousescroll callbacks. (bug 1142866 part 3, r=kats) 2015-03-22 00:42:26 -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
Kartikaya Gupta
94a427eede Bug 1139469 - Guard against a null compositor loop during startup on B2G. r=botond 2015-03-20 15:28:04 -04:00
Kartikaya Gupta
bd98be2c55 Bug 1144831 - Remove the HandleLongTapUp callback and just use HandleSingleTap instead. r=botond 2015-03-20 14:26:52 -04:00
Kartikaya Gupta
83d084edc5 Bug 1142437 - Better deal with delayed state change notifications from APZ. r=botond 2015-03-19 06:54:34 -04:00
Kartikaya Gupta
ed6d55e8d9 Bug 1122090 - Send the allowed behaviour notification to APZ for touch blocks when touch-action is enabled. r=botond 2015-03-19 06:33:33 -04:00
Botond Ballo
2eb9751320 Bug 1139675 - Simplify the APIs for getting and setting the pres shell resolution. r=mstange,mattwoodrow
--HG--
extra : rebase_source : 18444e5f9304bbf9c2c14903be6aa4ebf8a08af3
extra : source : 60fe56e752d984a8d074af1bec1dfcd40a41e5f6
2015-03-06 18:07:59 -05:00
Kartikaya Gupta
3898d1b85c Bug 1142926 - Only notify the docshell of state changes when moving in and out of a transforming state across all APZCs. r=botond 2015-03-16 14:52:52 -04:00
Kartikaya Gupta
617f629233 Bug 1143518 - Remove the TryCapture path which is now obsolete. r=smaug 2015-03-16 12:32:17 -04:00
dvander@alliedmods.net
b4113c6bb2 Bug 1139845 - Fix ChromeProcessController crash when there is no document element. r=botond
--HG--
extra : rebase_source : 108a0ed9e25d46ed77b6deefa081e1e7d19cffe9
2015-03-10 13:44:00 -04:00
David Anderson
56b490ea76 Bug 1139845 - Avoid crashing in ChromeProcessController if the view is null. r=mats 2015-03-06 13:06:25 -05:00
Kearwood (Kip) Gilbert
8d1fcc4892 Bug 945584: Part 6 - Implementation of scroll snapping (v10 Patch), r=roc, r=kats
- Implemented CSS scroll snapping (http://dev.w3.org/csswg/css-snappoints/)

--HG--
extra : rebase_source : e100b6a2cbc00321d6d1083d12a99213e34d5f9d
2015-02-19 15:53:30 -08:00
Botond Ballo
23539dce4e Bug 943537 - Handle modifiers on tap events in RemoteContentController and ChromeProcessController. r=kats,mbrubeck
--HG--
extra : rebase_source : 8fc78cab591b0da3622b57d9d351775fca529f6e
2015-03-02 16:41:02 -05:00
Botond Ballo
6f8bf1747c Bug 943537 - In the GeckoContentController interface, take the modifiers for tap events in 'widget modifier' format rather than 'DOM modifier' format. r=kats,mbrubeck
--HG--
extra : rebase_source : f931503087e1a13725c9a3a398d49111e060e76e
2015-03-02 16:38:07 -05:00
Maksim Lebedev
4a533d3199 Bug 1133492 - Extract some of nsPresShell into a separate TouchManager class. r=smaug 2015-02-24 22:20:00 -05:00
Kartikaya Gupta
53bf04f021 Bug 990907 - Add a flag on nsIScrollableFrame to indicate if it is actively being scrolled by APZ. r=tn 2015-02-25 09:32:09 -05:00
William Chen
46214bb09f Bug 1134021 - Use composed document when getting nsDOMWindowUtils from shadow DOM content. r=kats 2015-02-23 10:10:23 -08:00
Kartikaya Gupta
362a369841 Bug 1133083 - Fix build when APZCCallbackHelper logging is enabled. r=botond 2015-02-16 21:34:42 -05:00
Botond Ballo
3d67dfb02e Bug 1127066 - Implement ChromeProcessController::HandleLongTapUp(). r=kats
--HG--
extra : source : 5857a51daa23da0090b92467cc7fe5c23354b981
2015-02-09 18:20:15 -05:00
Botond Ballo
65a2a78c03 Bug 1127066 - Use (nsBaseWidget's) APZEventState in ChromeProcessController. r=kats
--HG--
extra : source : 65d5458b6f6af13ebaf424ccef87d4a0654646c4
2015-02-09 19:06:06 -05:00
Botond Ballo
933c29e8b5 Bug 1127066 - Complain loudly if APZEventState is used with a widget that doesn't support weak references. r=kats
--HG--
extra : source : e4337bd21059a0ecbffa5d0d567dd9a8f0a3bcd1
2015-02-09 14:10:08 -05:00
Botond Ballo
c83b7760e1 Bug 1127066 - Use a weak reference to the widget in APZEventState to avoid reference cycles. r=kats
--HG--
extra : source : fa8926018068e8de68b0b9c44ad0bdc87acf2033
2015-02-09 14:09:20 -05:00
Botond Ballo
9fd2a6c742 Bug 1127066 - Extract an APZEventState class from TabChild. r=kats
--HG--
extra : source : fc54993e0c836ca01f3900072227938e8c4b938c
2015-02-09 14:05:18 -05:00
Botond Ballo
c059c52cea Bug 1127066 - Extract SendSetTargetAPZCNotification and its helpers into APZCCallbackHelper. r=kats
--HG--
extra : source : 930454419509346f1002ea7486a128072688a921
2015-02-06 18:11:19 -05:00
Botond Ballo
286bd7e59d Bug 1127066 - Extract a helper to apply the APZ callback transform to a touch event. r=kats
--HG--
extra : source : d938af56c1d8225d794f879a5771c9a17d6a402b
2015-02-05 18:02:27 -05:00
Botond Ballo
a353f75418 Bug 1127066 - Fold APZCCallbackHelper::UpdateCallbackTransform() into ScrollFrame(). r=kats
--HG--
extra : source : 5b78d9e9ba84408c898d9e0ab55ae30f437792c8
2015-01-28 17:40:29 -05:00
Botond Ballo
54b4a664cb Bug 1127066 - Factor out code common to APZCCallbackHelper::UpdateRootFrame and UpdateSubFrame. r=kats
--HG--
extra : source : fe1ea639cdfde510a2bb51d2f113fb14809b6b43
2015-01-23 18:54:19 -05:00
Kartikaya Gupta
224d1319e8 Bug 930939 - Add a function to encapsulate running things on the APZ controller thread. r=botond 2015-02-10 08:24:23 -05:00
Kartikaya Gupta
b3954b6850 Bug 930939 - Move thread assertion code into APZThreadUtils and add more assertions. r=botond 2015-02-10 08:24:23 -05:00
David Zbarsky
58a982f86b Bug 1125040: Use LayoutDeviceIntPoint for nsLayoutUtils::GetEventCoordinatesRelativeTo and Touch::mRefPoint r=botond 2015-02-01 17:27:31 -05:00
Botond Ballo
5560fcf705 Bug 1005815 - Basic implementation of ChromeProcessController::HandleSingleTap. r=kats 2015-01-21 19:47:05 -05:00
Botond Ballo
fe4c9e99d2 Bug 1005815 - Extract TabChild::FireSingleTapEvent and its helpers into APZCCallbackHelper. r=kats,smaug 2015-01-21 19:46:27 -05:00
Kartikaya Gupta
842ba52546 Bug 1124452 - Ensure the widget continues to be destroyed on the main thread. r=BenWa
--HG--
extra : rebase_source : 012cfddceefea66299e3476d2a4ae831a586ad1c
2015-01-29 12:57:55 -05:00
Botond Ballo
88c75539b0 Bug 1124452 - Set a displayport for the root scroll frame of the root document in the chrome process. r=kats,tn
--HG--
extra : rebase_source : 08f10c1c81888d1ce4164f8609aa86fd3c93a4f8
2015-01-28 13:25:53 -05:00
Botond Ballo
0bbcf4d17c Bug 1124452 - Store the main thread's MessageLoop in ChromeProcessController. r=kats
--HG--
extra : rebase_source : 9c163795564dbe2fae1fd3a6e371b6455277d811
2015-01-14 18:03:43 -05:00
Botond Ballo
2c43a0247a Bug 1124452 - Store the widget in ChromeProcessController. r=kats
--HG--
extra : rebase_source : 007affed79a563eee52b25c21f8c1f8eda980542
2015-01-14 18:46:37 -05:00
Botond Ballo
5864d447d5 Bug 1120566 - Adjust points sent from APZ to Gecko for the 'scale-to-resolution' transform in APZCCallbackHelper::ApplyCallbackTransform. r=kats 2015-01-16 13:48:33 -05:00
Surabhi Anand
98a481bdeb Bug 1120203 - Transitioning mPresShellResolution field of FrameMetrics to use getters/setters. r=kats 2015-01-16 16:15:52 -05:00
Kartikaya Gupta
e10f70887c Bug 1119811 - Fold the gonk ParentProcessController into the reusable ChromeProcessController. r=dvander 2015-01-09 13:41:23 -05:00
Botond Ballo
755b86ca3a Bug 1076241 - Get rid of the nontransient async transform. r=kats 2014-12-19 18:53:05 -05:00
David Anderson
e2f100731e Handle in-process APZ events correctly on Windows. (bug 1111873 part 2, r=kats)
--HG--
extra : rebase_source : 8ca5156392705e3a1806fc6a15154dbaa380f438
2014-12-18 15:25:03 -08:00
Kartikaya Gupta
d666dd017d Add a helper for forwarding event APZ info to TabParent. (bug 1109985 part 1, r=dvander) 2014-12-15 23:28:19 -08:00
Kartikaya Gupta
47e697b384 Bug 1083818 - Bypass the 10ms delay if the element being activated won't visually change. r=botond 2014-12-15 13:59:02 -05:00
David Anderson
8226f0cd2e Create a common chrome-process GeckoContentController. (bug 1110540 part 2, r=kats) 2014-12-15 01:49:48 -08:00
David Anderson
b3dce254a5 Fix displayport bounds not being computed from the correct origin. (bug 1109949, r=tn) 2014-12-11 21:13:10 -08:00
Benoit Girard
aa2eeb8ec1 Bug 1094442 - Part 1: Refactor how tile w/h is queried r=kats
--HG--
extra : rebase_source : 70ef00318a718e2ce3149955d2908615d6125cf3
2014-11-12 17:54:29 -05:00
Botond Ballo
1c1e4448a5 Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats 2014-11-10 14:35:11 -05:00
Botond Ballo
751e400ea4 Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Botond Ballo
c854025367 Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
This makes APZ behave nicely with most uses of a css transform:scale.

Summary of changes:
  - FrameMetrics::mCumulativeResolution now includes the css-driven resolution
    in addition to the pres-shell resolution.
  - Displayports are now stored in Screen pixels rather than Layer pixels.
    This is what we want anyways (as we'd like the displayport size to remain
    constant as a fraction of the screen size), but it was necessary to make
    this change as part of this patch because continuing to store them in
    Layer pixels in the presence of a css-driven resolution would have
    required a bunch of infrastructure to implement correctly.

Remaining work:
  - Layout painting a scrollable layer at a resolution different from the
    scale induced by the css transform causes problems. These will go away
    with bug 1076192.
  - Different resolutions on the x and y axes are not supported. This is
    tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Carsten "Tomcat" Book
8894f4319e Backed out changeset fbb9dc943109 (bug 1076163) for Android 4.0 Crashes on a CLOSED TREE 2014-11-13 11:47:57 +01:00
Carsten "Tomcat" Book
c247fdb775 Backed out changeset 71fe4233208a (bug 1076163) 2014-11-13 11:47:35 +01:00
Carsten "Tomcat" Book
4b4108a4a9 Backed out changeset a96930f1e26b (bug 1055741) 2014-11-13 11:47:31 +01:00
Botond Ballo
d766d4ca14 Bug 1055741 - Unify the 'local Screen' and 'ParentLayer' coordinate systems. r=kats
--HG--
extra : rebase_source : af7323668fb54079e121755660da2121bec3d76b
2014-11-10 14:35:11 -05:00
Botond Ballo
98ceb86b05 Bug 1076163 - Clean up the resolution-related fields and methods in FrameMetrics. r=kats 2014-10-20 17:12:35 -04:00
Botond Ballo
57adf459d4 Bug 1076163 - Basic APZ support for css-driven resolution. r=kats,tn
This makes APZ behave nicely with most uses of a css transform:scale.

Summary of changes:
  - FrameMetrics::mCumulativeResolution now includes the css-driven resolution
    in addition to the pres-shell resolution.
  - Displayports are now stored in Screen pixels rather than Layer pixels.
    This is what we want anyways (as we'd like the displayport size to remain
    constant as a fraction of the screen size), but it was necessary to make
    this change as part of this patch because continuing to store them in
    Layer pixels in the presence of a css-driven resolution would have
    required a bunch of infrastructure to implement correctly.

Remaining work:
  - Layout painting a scrollable layer at a resolution different from the
    scale induced by the css transform causes problems. These will go away
    with bug 1076192.
  - Different resolutions on the x and y axes are not supported. This is
    tracked by bug 1039967.
2014-10-24 15:49:38 -04:00
Milan Sreckovic
b689675056 Bug 1068784 - Since the tiling is now not a simple pref choices, but it depends on some platform specific criteria, stop using the pref directly, and always use gfxPlatform::UseTiling instead. r=mwoodrow 2014-09-17 13:55:23 -04:00
Kartikaya Gupta
73680e4f09 Bug 1068802 - Clear the callback transform when the scroll update acknowledgement reaches the content side. r=botond 2014-09-19 09:33:53 -04:00
Kearwood (Kip) Gilbert
5f59b02c90 Bug 1022825 - Implement Asynchronous Smooth Scrolling on Compositor Thread. r=kats
- Extended nsIScrollableFrame and nsGfxScrollFrame to return destination
  of smooth scrolls which are to be animated on the compositor thread.
- Added apz.smooth_scroll_repaint_interval preference.
- Implemented AsyncPanZoomController::PanZoomState::SMOOTH_MSD_SCROLL state
  and AsyncPanZoomController::SmoothScrollAnimation class to animate smooth
  scroll animations on the compositor thread.
- Extended FrameMetrics to report requests for smooth scrolls to be animated
  on the compositor thread and their corresponding destination positions.
- AsyncPanZoomController now checks FrameMetrics for requests to perform
  smooth scrolling on the compositor thread.  It will ensure that they
  are cancelled as needed by mousewheel, touchpanel, keyboard, and
  CSSOM-View instant scrolling DOM methods.
- The layout/generic/test/test_scroll_behavior.html mochitest has been
  commented as depending on Bug 1062609 before being enabled for APZ.
2014-07-10 11:52:40 -07:00
Aryeh Gregor
60fbc97021 Bug 1053190 - Reduce unnecessary inclusion of nsINode.h in headers; r=ehsan 2014-08-18 17:44:50 +03: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
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
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
Benoit Jacob
c957e59732 Bug 1027251 - Fix or whitelist dangerous public destructors in gfx/ - r=jrmuizel 2014-06-18 22:28:59 -04:00
David Zbarsky
f3172735cb Bug 1015644 - Clean up ActiveElementManager r=botond 2014-06-16 18:50:16 -04:00
Debbe Heisler
7e378291e5 Bug 1001582 -- Transitioned FrameMetrics::mPresShellId to use a getter/setter. r=botond 2014-05-16 19:00:50 -04:00
Kartikaya Gupta
56c07ce270 Bug 1010979 - Remove the non-margins codepaths from APZCCallbackHelper. r=botond 2014-05-16 08:08:21 -04:00
Kartikaya Gupta
26400d4ce0 Bug 1010119 - Roll back part of bug 978248 as it causes a regression and is not needed any more. r=botond 2014-05-16 08:08:21 -04:00
Botond Ballo
a623403144 Bug 1005378 - Have TabChild create a view ID for the document element if one doesn't already exist. r=kats 2014-05-05 15:06:28 -04:00
Kartikaya Gupta
bcf5a8a20a Bug 1004516 - Add some default-disabled file logging to ActiveElementManager. r=botond 2014-05-02 08:21:57 -04:00
Kartikaya Gupta
81128c14cd Bug 1004516 - Ensure state is properly cleared in the ActiveElementManager. r=botond 2014-05-02 08:21:57 -04:00
Timothy Nikkel
e6fdc0c9f4 Bug 1000350. Don't overwrite a layout set display port base with an APZC-guessed one. r=kats
APZC set ones are only meant to fill in the gaps, use them only if we have nothing else.
2014-04-26 00:13:36 -05:00
Vivien Nicolas
c9a341617d Bug 997235 - Followup to bug 986752 - CSS :active states get stuck with multiple on-screen touches. r=botond 2014-04-23 08:16:00 -04:00
Kartikaya Gupta
c1a7eb8c17 Bug 995411 - Move various pieces of APZ code into gfx/layers/apz. r=jrmuizel,botond
--HG--
rename : gfx/layers/ipc/GeckoContentController.h => gfx/layers/apz/public/GeckoContentController.h
rename : gfx/layers/composite/APZCTreeManager.cpp => gfx/layers/apz/src/APZCTreeManager.cpp
rename : gfx/layers/composite/APZCTreeManager.h => gfx/layers/apz/src/APZCTreeManager.h
rename : gfx/layers/ipc/AsyncPanZoomController.cpp => gfx/layers/apz/src/AsyncPanZoomController.cpp
rename : gfx/layers/ipc/AsyncPanZoomController.h => gfx/layers/apz/src/AsyncPanZoomController.h
rename : gfx/layers/ipc/Axis.cpp => gfx/layers/apz/src/Axis.cpp
rename : gfx/layers/ipc/Axis.h => gfx/layers/apz/src/Axis.h
rename : gfx/layers/ipc/GestureEventListener.cpp => gfx/layers/apz/src/GestureEventListener.cpp
rename : gfx/layers/ipc/GestureEventListener.h => gfx/layers/apz/src/GestureEventListener.h
rename : gfx/layers/ipc/TaskThrottler.cpp => gfx/layers/apz/src/TaskThrottler.cpp
rename : gfx/layers/ipc/TaskThrottler.h => gfx/layers/apz/src/TaskThrottler.h
rename : widget/xpwidgets/APZCCallbackHelper.cpp => gfx/layers/apz/util/APZCCallbackHelper.cpp
rename : widget/xpwidgets/APZCCallbackHelper.h => gfx/layers/apz/util/APZCCallbackHelper.h
rename : widget/xpwidgets/ActiveElementManager.cpp => gfx/layers/apz/util/ActiveElementManager.cpp
rename : widget/xpwidgets/ActiveElementManager.h => gfx/layers/apz/util/ActiveElementManager.h
2014-04-17 07:54:25 -04:00