opnsense-ports/www/waterfox/files/patch-bug1434580
Franco Fichtner c321da86f2 */*: sync with upstream
Taken from: HardenedBSD
2018-02-06 07:15:33 +01:00

29 lines
1.2 KiB
Text

commit dd8c13a8442d
Author: Olli Pettay <Olli.Pettay@helsinki.fi>
Date: Fri Feb 2 13:25:26 2018 +0200
Bug 1434580 - Ensure proper mouseover handling. r=masayuki, a=abillings
--HG--
extra : source : bfd4bdfd40b43d0491c66af5b599659427e4e795
---
dom/events/EventStateManager.cpp | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git dom/events/EventStateManager.cpp dom/events/EventStateManager.cpp
index 66b686dcf302..52f9f2313828 100644
--- dom/events/EventStateManager.cpp
+++ dom/events/EventStateManager.cpp
@@ -4326,9 +4326,10 @@ EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent,
// content associated with our subdocument.
EnsureDocument(mPresContext);
if (nsIDocument *parentDoc = mDocument->GetParentDocument()) {
- if (nsIContent *docContent = parentDoc->FindContentForSubDocument(mDocument)) {
+ if (nsCOMPtr<nsIContent> docContent =
+ parentDoc->FindContentForSubDocument(mDocument)) {
if (nsIPresShell *parentShell = parentDoc->GetShell()) {
- EventStateManager* parentESM =
+ RefPtr<EventStateManager> parentESM =
parentShell->GetPresContext()->EventStateManager();
parentESM->NotifyMouseOver(aMouseEvent, docContent);
}