зеркало из 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,12 +6983,16 @@ PresShell::HandleEvent(nsIFrame* aFrame,
|
|||
nsIDocument::UnlockPointer();
|
||||
}
|
||||
|
||||
nsWeakFrame weakFrame(frame);
|
||||
{ // scope for scriptBlocker.
|
||||
nsAutoScriptBlocker scriptBlocker;
|
||||
GetRootPresShell()->GetDocument()->
|
||||
EnumerateSubDocuments(FlushThrottledStyles, nullptr);
|
||||
}
|
||||
frame = GetNearestFrameContainingPresShell(this);
|
||||
|
||||
if (!weakFrame.IsAlive()) {
|
||||
frame = GetNearestFrameContainingPresShell(this);
|
||||
}
|
||||
}
|
||||
|
||||
NS_WARN_IF_FALSE(frame, "Nothing to handle this event!");
|
||||
|
|
Загрузка…
Ссылка в новой задаче