Bug 1377814 - Don't schedule an empty transaction on an APZ focus sequence number update. r?botond draft
authorRyan Hunt <rhunt@eqrion.net>
Wed, 05 Jul 2017 16:20:40 -0500
changeset 604378 c0f4e1e0c4f3db2aa827cd1dd0692461bf02d060
parent 604170 211d4dd61025c0a40caea7a54c9066e051bdde8c
child 636177 a9ed33855515f69040b71ff1cb349e6d93e44a20
push id67055
push userbmo:rhunt@eqrion.net
push dateWed, 05 Jul 2017 21:20:55 +0000
reviewersbotond
bugs1377814
milestone56.0a1
Bug 1377814 - Don't schedule an empty transaction on an APZ focus sequence number update. r?botond MozReview-Commit-ID: 3SERspy0w9s
layout/base/PresShell.cpp
--- a/layout/base/PresShell.cpp
+++ b/layout/base/PresShell.cpp
@@ -7164,19 +7164,16 @@ PresShell::HandleEvent(nsIFrame* aFrame,
   }
 #endif
 
   NS_ASSERTION(aFrame, "aFrame should be not null");
 
   // Update the latest focus sequence number with this new sequence number
   if (mAPZFocusSequenceNumber < aEvent->mFocusSequenceNumber) {
     mAPZFocusSequenceNumber = aEvent->mFocusSequenceNumber;
-
-    // Schedule an empty transaction to transmit this focus update
-    aFrame->SchedulePaint(nsIFrame::PAINT_COMPOSITE_ONLY);
   }
 
   if (sPointerEventEnabled) {
     AutoWeakFrame weakFrame(aFrame);
     nsCOMPtr<nsIContent> targetContent;
     DispatchPointerFromMouseOrTouch(this, aFrame, aEvent, aDontRetargetEvents,
                                     aEventStatus,
                                     getter_AddRefs(targetContent));