mPresShell->IsPaintingSuppressed(&suppressed);
GetPresContext()->PresShell()->IsPaintingSuppressed(&suppressed);
nsSVGOuterSVGFrame::InvalidateRegion(nsISVGRendererRegion* region, PRBool bRedraw){//  NS_ASSERTION(mView, "need a view!");//  if (!mView) return NS_ERROR_FAILURE;    if (!region && !bRedraw) return NS_OK;  NS_ENSURE_TRUE(mPresShell, NS_ERROR_FAILURE);  // just ignore invalidates if painting is suppressed by the shell  PRBool suppressed = PR_FALSE;  mPresShell->IsPaintingSuppressed(&suppressed);  if (suppressed) return NS_OK;    nsIView* view = GetClosestView();  NS_ENSURE_TRUE(view, NS_ERROR_FAILURE);  nsIViewManager* vm = view->GetViewManager();  vm->BeginUpdateViewBatch();  if (region) {    nsCOMPtr<nsISVGRectangleSink> sink = CreateVMRectInvalidator(vm, view,                                                                 (int)(GetTwipsPerPx()+0.5f));    NS_ASSERTION(sink, "could not create rectangle sink for viewmanager");    if (sink)      region->GetRectangleScans(sink);  }  vm->EndUpdateViewBatch(NS_VMREFRESH_NO_SYNC);    return NS_OK;}