Dynamic skin switching lives, baby.

This commit is contained in:
hyatt%netscape.com 2000-04-27 02:10:43 +00:00
Родитель 3d0a647757
Коммит 7e1dadef16
2 изменённых файлов: 14 добавлений и 0 удалений

Просмотреть файл

@ -47,6 +47,7 @@
#include "nsNetUtil.h"
#include "nsFileLocations.h"
#include "nsIFileLocator.h"
#include "nsIXBLService.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMWindow.h"
#include "nsIDOMWindowCollection.h"
@ -670,6 +671,12 @@ NS_IMETHODIMP nsChromeRegistry::RefreshSkins()
xulCache->Flush();
}
// Flush the XBL docs.
NS_WITH_SERVICE(nsIXBLService, xblService, "component://netscape/xbl", &rv);
if (!xblService)
return rv;
xblService->FlushBindingDocuments();
// Get the window mediator
NS_WITH_SERVICE(nsIWindowMediator, windowMediator, kWindowMediatorCID, &rv);
if (NS_SUCCEEDED(rv)) {

Просмотреть файл

@ -47,6 +47,7 @@
#include "nsNetUtil.h"
#include "nsFileLocations.h"
#include "nsIFileLocator.h"
#include "nsIXBLService.h"
#include "nsPIDOMWindow.h"
#include "nsIDOMWindow.h"
#include "nsIDOMWindowCollection.h"
@ -670,6 +671,12 @@ NS_IMETHODIMP nsChromeRegistry::RefreshSkins()
xulCache->Flush();
}
// Flush the XBL docs.
NS_WITH_SERVICE(nsIXBLService, xblService, "component://netscape/xbl", &rv);
if (!xblService)
return rv;
xblService->FlushBindingDocuments();
// Get the window mediator
NS_WITH_SERVICE(nsIWindowMediator, windowMediator, kWindowMediatorCID, &rv);
if (NS_SUCCEEDED(rv)) {