summaryrefslogtreecommitdiff
path: root/gfx/layers/apz/src/APZCTreeManager.cpp
diff options
context:
space:
mode:
authorMoonchild <moonchild@palemoon.org>2022-09-08 16:50:40 +0000
committerMoonchild <moonchild@palemoon.org>2022-09-08 16:54:07 +0000
commita9c9be4d218349513b3f223aaf8df5b83d13efe8 (patch)
treee3e85d364607c24c5bbba2835e091d4b5b819d68 /gfx/layers/apz/src/APZCTreeManager.cpp
parent0682d4ac0e98d0c1afc58ddff0440c6288f199fa (diff)
downloaduxp-a9c9be4d218349513b3f223aaf8df5b83d13efe8.tar.gz
Issue #80 - Re-unify most of gfx
Diffstat (limited to 'gfx/layers/apz/src/APZCTreeManager.cpp')
-rw-r--r--gfx/layers/apz/src/APZCTreeManager.cpp15
1 files changed, 0 insertions, 15 deletions
diff --git a/gfx/layers/apz/src/APZCTreeManager.cpp b/gfx/layers/apz/src/APZCTreeManager.cpp
index 297bf57fe2..c308754e5a 100644
--- a/gfx/layers/apz/src/APZCTreeManager.cpp
+++ b/gfx/layers/apz/src/APZCTreeManager.cpp
@@ -85,21 +85,6 @@ struct APZCTreeManager::TreeBuildingState {
std::map<ScrollableLayerGuid, AsyncPanZoomController*> mApzcMap;
};
-// Returns whether or not a wheel event action will be (or was) performed by
-// APZ. If this returns true, the event must not perform a synchronous
-// scroll.
-//
-// Even if this returns false, all wheel events in APZ-aware widgets must
-// be sent through APZ so they are transformed correctly for TabParent.
-static bool
-WillHandleWheelEvent(WidgetWheelEvent* aEvent)
-{
- return EventStateManager::WheelEventIsScrollAction(aEvent) &&
- (aEvent->mDeltaMode == nsIDOMWheelEvent::DOM_DELTA_LINE ||
- aEvent->mDeltaMode == nsIDOMWheelEvent::DOM_DELTA_PIXEL ||
- aEvent->mDeltaMode == nsIDOMWheelEvent::DOM_DELTA_PAGE);
-}
-
class APZCTreeManager::CheckerboardFlushObserver : public nsIObserver {
public:
NS_DECL_ISUPPORTS