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) {
case eTouchStart: {
mTouchEndCancelled = false;
if (mPendingTouchPreventedResponse) {
// We can enter here if we get two TOUCH_STARTs in a row and didn't
// respond to the first one. Respond to it now.
mContentReceivedInputBlockCallback(mPendingTouchPreventedGuid,
mPendingTouchPreventedBlockId, false);
sentContentResponse = true;
mPendingTouchPreventedResponse = false;
}
sentContentResponse = SendPendingTouchPreventedResponse(false);
// sentContentResponse can be true here if we get two TOUCH_STARTs in a row
// and just responded to the first one.
if (isTouchPrevented) {
mContentReceivedInputBlockCallback(aGuid, aInputBlockId, isTouchPrevented);
sentContentResponse = true;