Bug 978001. Null check presshell in nsViewManager::ProcessPendingUpdatesForView. r=mats
This commit is contained in:
@@ -411,6 +411,7 @@ void nsViewManager::ProcessPendingUpdatesForView(nsView* aView,
|
|||||||
}
|
}
|
||||||
NS_ASSERTION(aView->HasWidget(), "FlushDelayedResize removed our widget!");
|
NS_ASSERTION(aView->HasWidget(), "FlushDelayedResize removed our widget!");
|
||||||
|
|
||||||
|
if (presShell) {
|
||||||
#ifdef MOZ_DUMP_PAINTING
|
#ifdef MOZ_DUMP_PAINTING
|
||||||
if (nsLayoutUtils::InvalidationDebuggingIsEnabled()) {
|
if (nsLayoutUtils::InvalidationDebuggingIsEnabled()) {
|
||||||
printf_stderr("---- PAINT START ----PresShell(%p), nsView(%p), nsIWidget(%p)\n", presShell, aView, widget);
|
printf_stderr("---- PAINT START ----PresShell(%p), nsView(%p), nsIWidget(%p)\n", presShell, aView, widget);
|
||||||
@@ -427,6 +428,7 @@ void nsViewManager::ProcessPendingUpdatesForView(nsView* aView,
|
|||||||
|
|
||||||
aView->SetForcedRepaint(false);
|
aView->SetForcedRepaint(false);
|
||||||
SetPainting(false);
|
SetPainting(false);
|
||||||
|
}
|
||||||
viewManager->FlushDirtyRegionToWidget(aView);
|
viewManager->FlushDirtyRegionToWidget(aView);
|
||||||
} else {
|
} else {
|
||||||
viewManager->FlushDirtyRegionToWidget(aView);
|
viewManager->FlushDirtyRegionToWidget(aView);
|
||||||
|
|||||||
Reference in New Issue
Block a user