summaryrefslogtreecommitdiff
path: root/dom
diff options
context:
space:
mode:
authorOlli Pettay <Olli.Pettay@helsinki.fi>2018-02-02 13:25:26 +0200
committerwolfbeast <mcwerewolf@gmail.com>2018-03-14 10:53:02 +0100
commitc7816fd9ee2ad7701bcd4d4a1fa054111efd96d6 (patch)
tree38f19afaba35bb1c116efc3ab8decfbfdf58f456 /dom
parentabf6ecee9f61e079ca93f2cb4bbdbed65688f048 (diff)
downloaduxp-c7816fd9ee2ad7701bcd4d4a1fa054111efd96d6.tar.gz
Bug 1434580 - Ensure proper mouseover handling. r=masayuki, a=RyanVM
--HG-- extra : source : bfd4bdfd40b43d0491c66af5b599659427e4e795 extra : intermediate-source : 8660689b18cd25f0110276bfc5bb8e8dd9c325f9
Diffstat (limited to 'dom')
-rw-r--r--dom/events/EventStateManager.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/dom/events/EventStateManager.cpp b/dom/events/EventStateManager.cpp
index 659629066c..c23cdb5751 100644
--- a/dom/events/EventStateManager.cpp
+++ b/dom/events/EventStateManager.cpp
@@ -4151,9 +4151,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);
}