mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-11 12:25:53 +00:00
Bug 942535 - Fix a compiler warning about signed/unsigned comparison in APZ. r=dholbert
--HG-- extra : rebase_source : 816fc31c43178e1b5841c3a49cd71d2c08751331
This commit is contained in:
parent
8b5bea2ea0
commit
191d81b8c4
@ -621,7 +621,7 @@ APZCTreeManager::ClearTree()
|
||||
|
||||
void
|
||||
APZCTreeManager::HandleOverscroll(AsyncPanZoomController* aPrev, ScreenPoint aStartPoint, ScreenPoint aEndPoint,
|
||||
int aOverscrollHandoffChainIndex)
|
||||
uint32_t aOverscrollHandoffChainIndex)
|
||||
{
|
||||
// Increment the current index into the chain of APZCs that handle overscroll
|
||||
// for the current pan gesture. Since we are in overscroll, we have scrolled
|
||||
|
@ -228,7 +228,7 @@ public:
|
||||
* overscroll handoff chain.
|
||||
*/
|
||||
void HandleOverscroll(AsyncPanZoomController* aAPZC, ScreenPoint aStartPoint, ScreenPoint aEndPoint,
|
||||
int aOverscrollHandoffChainIndex);
|
||||
uint32_t aOverscrollHandoffChainIndex);
|
||||
|
||||
protected:
|
||||
/**
|
||||
|
@ -840,7 +840,7 @@ void AsyncPanZoomController::UpdateWithTouchAtDevicePoint(const MultiTouchInput&
|
||||
|
||||
void AsyncPanZoomController::AttemptScroll(const ScreenPoint& aStartPoint,
|
||||
const ScreenPoint& aEndPoint,
|
||||
int aOverscrollHandoffChainIndex) {
|
||||
uint32_t aOverscrollHandoffChainIndex) {
|
||||
// "start - end" rather than "end - start" because e.g. moving your finger
|
||||
// down (*positive* direction along y axis) causes the vertical scroll offset
|
||||
// to *decrease* as the page follows your finger.
|
||||
|
@ -277,7 +277,7 @@ public:
|
||||
* overscroll.
|
||||
*/
|
||||
void AttemptScroll(const ScreenPoint& aStartPoint, const ScreenPoint& aEndPoint,
|
||||
int aOverscrollHandoffChainIndex = 0);
|
||||
uint32_t aOverscrollHandoffChainIndex = 0);
|
||||
|
||||
/**
|
||||
* Returns whether this APZC is for an element marked with the 'scrollgrab'
|
||||
|
Loading…
Reference in New Issue
Block a user