diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-23 10:20:01 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-23 13:55:38 +0100 |
commit | cc53748228bb4201d05dcbd2a7d7f8e05c80909b (patch) | |
tree | cfb37c6182e6819768c89326caca1929b688191c | |
parent | 9e3ca2878d47fc10e5effc3537a4869c462e7e16 (diff) | |
download | UXP-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.cpp | 10 |
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) { |