diff options
author | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-23 10:20:01 +0100 |
---|---|---|
committer | wolfbeast <mcwerewolf@wolfbeast.com> | 2019-03-23 10:20:01 +0100 |
commit | 5ea1d913c2072f14be550c628ed71c1b91d700c0 (patch) | |
tree | 5a99ecf6b102bf076dfe3b0ecffe3fcd731a653a | |
parent | cc3f51ad660e5574e600fdb2793385aa52b2049d (diff) | |
download | UXP-5ea1d913c2072f14be550c628ed71c1b91d700c0.tar UXP-5ea1d913c2072f14be550c628ed71c1b91d700c0.tar.gz UXP-5ea1d913c2072f14be550c628ed71c1b91d700c0.tar.lz UXP-5ea1d913c2072f14be550c628ed71c1b91d700c0.tar.xz UXP-5ea1d913c2072f14be550c628ed71c1b91d700c0.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) { |