Bug 942535 - Fix a compiler warning about signed/unsigned comparison in APZ. r=dholbert

--HG--
extra : rebase_source : 816fc31c43178e1b5841c3a49cd71d2c08751331
This commit is contained in:
Botond Ballo 2013-11-25 14:29:41 -05:00
parent 8b5bea2ea0
commit 191d81b8c4
4 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -228,7 +228,7 @@ public:
* overscroll handoff chain.
*/
void HandleOverscroll(AsyncPanZoomController* aAPZC, ScreenPoint aStartPoint, ScreenPoint aEndPoint,
int aOverscrollHandoffChainIndex);
uint32_t aOverscrollHandoffChainIndex);
protected:
/**

View File

@ -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.

View File

@ -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'