Bug 1105836 - Automatically confirm the target APZC for an input block that arrives during fast-motion. r=botond
authorKartikaya Gupta <kgupta@mozilla.com>
Fri, 28 Nov 2014 12:25:41 -0500
changeset 243898 5a68579c6fbf4f0890d2a38e3b28a09ec581302e
parent 243897 3910f8c77b51524a2e56bcd7aaf046f3257320ec
child 243899 7d6a804f047dc1088d1d913ade7fb4240b737494
push id4489
push userraliiev@mozilla.com
push dateMon, 23 Feb 2015 15:17:55 +0000
treeherdermozilla-beta@fd7c3dc24146 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbotond
bugs1105836
milestone36.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1105836 - Automatically confirm the target APZC for an input block that arrives during fast-motion. r=botond
gfx/layers/apz/src/InputQueue.cpp
--- a/gfx/layers/apz/src/InputQueue.cpp
+++ b/gfx/layers/apz/src/InputQueue.cpp
@@ -65,16 +65,17 @@ InputQueue::ReceiveInputEvent(const nsRe
       block->GetOverscrollHandoffChain()->CancelAnimations();
     }
 
     bool waitForMainThread = !aTargetConfirmed;
     if (!gfxPrefs::LayoutEventRegionsEnabled()) {
       waitForMainThread |= aTarget->NeedToWaitForContent();
     }
     if (block->IsDuringFastMotion()) {
+      block->SetConfirmedTargetApzc(aTarget);
       waitForMainThread = false;
     }
     if (waitForMainThread) {
       // We either don't know for sure if aTarget is the right APZC, or we may
       // need to wait to give content the opportunity to prevent-default the
       // touch events. Either way we schedule a timeout so the main thread stuff
       // can run.
       ScheduleMainThreadTimeout(aTarget, block->GetBlockId());