зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1656107 - remove FindContentForSubDocument use from EventStateManager. r=farre
Differential Revision: https://phabricator.services.mozilla.com/D98617
This commit is contained in:
Родитель
063c946ad1
Коммит
1c72bc8ce8
|
@ -4501,8 +4501,9 @@ 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 (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();
|
||||
|
@ -4510,6 +4511,8 @@ void EventStateManager::NotifyMouseOver(WidgetMouseEvent* aMouseEvent,
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// Firing the DOM event in the parent document could cause all kinds
|
||||
// of havoc. Reverify and take care.
|
||||
if (wrapper->mLastOverElement == aContent) return;
|
||||
|
|
Загрузка…
Ссылка в новой задаче