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