зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1434580, ensure proper mouseover handling, r=masayuki
This commit is contained in:
Родитель
6194942f78
Коммит
c4aa908e3b
|
@ -4320,9 +4320,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);
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче