nsCOMPtr<nsIBindingManager> bindingManager; document->GetBindingManager(getter_AddRefs(bindingManager)); bindingManager->FlushSkinBindings();
document->GetBindingManager()->FlushSkinBindings();
static void FlushSkinBindingsForWindow(nsIDOMWindowInternal* aWindow){  // Get the DOM document.  nsCOMPtr<nsIDOMDocument> domDocument;  aWindow->GetDocument(getter_AddRefs(domDocument));  if (!domDocument)    return;  nsCOMPtr<nsIDocument> document = do_QueryInterface(domDocument);  if (!document)    return;  // Annihilate all XBL bindings.  nsCOMPtr<nsIBindingManager> bindingManager;  document->GetBindingManager(getter_AddRefs(bindingManager));  bindingManager->FlushSkinBindings();}