summaryrefslogtreecommitdiff
path: root/layout/base
diff options
context:
space:
mode:
authorwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 10:20:01 +0100
committerwolfbeast <mcwerewolf@wolfbeast.com>2019-03-23 10:20:01 +0100
commit5ea1d913c2072f14be550c628ed71c1b91d700c0 (patch)
tree5a99ecf6b102bf076dfe3b0ecffe3fcd731a653a /layout/base
parentcc3f51ad660e5574e600fdb2793385aa52b2049d (diff)
downloaduxp-5ea1d913c2072f14be550c628ed71c1b91d700c0.tar.gz
Grab caching capturing content with local variable.
Diffstat (limited to 'layout/base')
-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 969ebc9621..5dfbb8dba6 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) {