зеркало из https://github.com/mozilla/gecko-dev.git
Bug 969222 - Don't find a new frame pointer unless the previous one was deleted. r=smaug
This commit is contained in:
Родитель
019ccf1af6
Коммит
926a990b6e
|
@ -6983,13 +6983,17 @@ PresShell::HandleEvent(nsIFrame* aFrame,
|
|||
nsIDocument::UnlockPointer();
|
||||
}
|
||||
|
||||
nsWeakFrame weakFrame(frame);
|
||||
{ // scope for scriptBlocker.
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
GetRootPresShell()->GetDocument()->
|
||||
EnumerateSubDocuments(FlushThrottledStyles, nullptr);
|
||||
}
|
||||
|
||||
if (!weakFrame.IsAlive()) {
|
||||
frame = GetNearestFrameContainingPresShell(this);
|
||||
}
|
||||
}
|
||||
|
||||
NS_WARN_IF_FALSE(frame, "Nothing to handle this event!");
|
||||
if (!frame)
|
||||
|
|
Загрузка…
Ссылка в новой задаче