Make GetCurrentEventFrame() return null if the shell is being destroyed (don't call GetPrimaryFrameFor()). b=421839 r+sr=roc

This commit is contained in:
Mats Palmgren 2008-12-08 00:10:31 +01:00
parent c56c851ea5
commit db78c7fdc2

View File

@ -5448,6 +5448,10 @@ PresShell::Paint(nsIView* aView,
nsIFrame*
PresShell::GetCurrentEventFrame()
{
if (NS_UNLIKELY(mIsDestroying)) {
return nsnull;
}
if (!mCurrentEventFrame && mCurrentEventContent) {
// Make sure the content still has a document reference. If not,
// then we assume it is no longer in the content tree and the