Bug 1217818 - Minor refactoring to reuse a function. r=botond

--HG--
extra : commitid : 3KFxfvP88Fq
This commit is contained in:
Kartikaya Gupta 2015-10-28 12:52:54 -04:00
Родитель 28bf53e284
Коммит 19ae3d2b17
1 изменённых файлов: 3 добавлений и 8 удалений

Просмотреть файл

@ -265,14 +265,9 @@ APZEventState::ProcessTouchEvent(const WidgetTouchEvent& aEvent,
switch (aEvent.mMessage) { switch (aEvent.mMessage) {
case eTouchStart: { case eTouchStart: {
mTouchEndCancelled = false; mTouchEndCancelled = false;
if (mPendingTouchPreventedResponse) { sentContentResponse = SendPendingTouchPreventedResponse(false);
// We can enter here if we get two TOUCH_STARTs in a row and didn't // sentContentResponse can be true here if we get two TOUCH_STARTs in a row
// respond to the first one. Respond to it now. // and just responded to the first one.
mContentReceivedInputBlockCallback(mPendingTouchPreventedGuid,
mPendingTouchPreventedBlockId, false);
sentContentResponse = true;
mPendingTouchPreventedResponse = false;
}
if (isTouchPrevented) { if (isTouchPrevented) {
mContentReceivedInputBlockCallback(aGuid, aInputBlockId, isTouchPrevented); mContentReceivedInputBlockCallback(aGuid, aInputBlockId, isTouchPrevented);
sentContentResponse = true; sentContentResponse = true;