summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 10:20:01 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 13:55:38 +0100
commitcc53748228bb4201d05dcbd2a7d7f8e05c80909b (patch)
treecfb37c6182e6819768c89326caca1929b688191c
parent9e3ca2878d47fc10e5effc3537a4869c462e7e16 (diff)
downloadUXP-cc53748228bb4201d05dcbd2a7d7f8e05c80909b.tar
UXP-cc53748228bb4201d05dcbd2a7d7f8e05c80909b.tar.gz
UXP-cc53748228bb4201d05dcbd2a7d7f8e05c80909b.tar.lz
UXP-cc53748228bb4201d05dcbd2a7d7f8e05c80909b.tar.xz
UXP-cc53748228bb4201d05dcbd2a7d7f8e05c80909b.zip
Grab caching capturing content with local variable.
-rw-r--r--layout/base/nsPresShell.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp
index 969ebc962..5dfbb8dba 100644
--- a/layout/base/nsPresShell.cpp
+++ b/layout/base/nsPresShell.cpp
@@ -7296,11 +7296,11 @@ PresShell::HandleEvent(nsIFrame* aFrame,
return NS_OK;
}
- nsIContent* capturingContent = ((aEvent->mClass == ePointerEventClass ||
- aEvent->mClass == eWheelEventClass ||
- aEvent->HasMouseEventMessage())
- ? GetCapturingContent()
- : nullptr);
+ nsCOMPtr<nsIContent> capturingContent = ((aEvent->mClass == ePointerEventClass ||
+ aEvent->mClass == eWheelEventClass ||
+ aEvent->HasMouseEventMessage())
+ ? GetCapturingContent()
+ : nullptr);
nsCOMPtr<nsIDocument> retargetEventDoc;
if (!aDontRetargetEvents) {