mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 16:25:38 +00:00
Bug 1656107 - remove FindContentForSubDocument use from EventStateManager. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98617
This commit is contained in:
parent
063c946ad1
commit
1c72bc8ce8
@ -4501,12 +4501,15 @@ void EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent,
|
||||
// content associated with our subdocument.
|
||||
EnsureDocument(mPresContext);
|
||||
if (Document* parentDoc = mDocument->GetInProcessParentDocument()) {
|
||||
if (nsCOMPtr<nsIContent> docContent =
|
||||
parentDoc->FindContentForSubDocument(mDocument)) {
|
||||
if (PresShell* parentPresShell = parentDoc->GetPresShell()) {
|
||||
RefPtr<EventStateManager> parentESM =
|
||||
parentPresShell->GetPresContext()->EventStateManager();
|
||||
parentESM->NotifyMouseOver(aMouseEvent, docContent);
|
||||
if (RefPtr<BrowsingContext> bc = mDocument->GetBrowsingContext()) {
|
||||
if (!bc->IsCached()) {
|
||||
if (nsCOMPtr<nsIContent> docContent = bc->GetEmbedderElement()) {
|
||||
if (PresShell* parentPresShell = parentDoc->GetPresShell()) {
|
||||
RefPtr<EventStateManager> parentESM =
|
||||
parentPresShell->GetPresContext()->EventStateManager();
|
||||
parentESM->NotifyMouseOver(aMouseEvent, docContent);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user