Bug 1377814 - Don't schedule an empty transaction on an APZ focus sequence number update. r?botond
MozReview-Commit-ID: 3SERspy0w9s
--- 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));