nsCOMPtr<nsIPresShell> shell;  GetPrimaryPresShell(aFrame, getter_AddRefs(shell));
nsIPresShell *shell = GetPrimaryPresShell(aFrame);
static void RefreshWidgetWindow(nsIFrame* aFrame){  nsCOMPtr<nsIPresShell> shell;  GetPrimaryPresShell(aFrame, getter_AddRefs(shell));  if (!shell)    return;  nsIViewManager* vm = shell->GetViewManager();  if (!vm)    return;   vm->UpdateAllViews(NS_VMREFRESH_NO_SYNC);}