mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 17:47:34 +09:00
Bug 1434580 - Ensure proper mouseover handling. r=masayuki, a=RyanVM
--HG-- extra : source : bfd4bdfd40b43d0491c66af5b599659427e4e795 extra : intermediate-source : 8660689b18cd25f0110276bfc5bb8e8dd9c325f9
This commit is contained in:
parent
62821e5092
commit
13e195c594
1 changed files with 3 additions and 2 deletions
|
|
@ -4151,9 +4151,10 @@ EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent,
|
||||||
// content associated with our subdocument.
|
// content associated with our subdocument.
|
||||||
EnsureDocument(mPresContext);
|
EnsureDocument(mPresContext);
|
||||||
if (nsIDocument *parentDoc = mDocument->GetParentDocument()) {
|
if (nsIDocument *parentDoc = mDocument->GetParentDocument()) {
|
||||||
if (nsIContent *docContent = parentDoc->FindContentForSubDocument(mDocument)) {
|
if (nsCOMPtr<nsIContent> docContent =
|
||||||
|
parentDoc->FindContentForSubDocument(mDocument)) {
|
||||||
if (nsIPresShell *parentShell = parentDoc->GetShell()) {
|
if (nsIPresShell *parentShell = parentDoc->GetShell()) {
|
||||||
EventStateManager* parentESM =
|
RefPtr<EventStateManager> parentESM =
|
||||||
parentShell->GetPresContext()->EventStateManager();
|
parentShell->GetPresContext()->EventStateManager();
|
||||||
parentESM->NotifyMouseOver(aMouseEvent, docContent);
|
parentESM->NotifyMouseOver(aMouseEvent, docContent);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue