fix for bug 119923 - split nsIChromeRegistry into 2 interfaces, one that is XUL-specific

this way we can implement an minimal chrome registry for embedding, that doesn't support all the wacky skin- and locale-switching goodness of XUL.
r=waterson, sr=hyatt
This commit is contained in:
alecf%netscape.com 2006-05-17 02:34:40 +00:00
Родитель 4004c0c7e3
Коммит e953e24301
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -43,7 +43,7 @@ var gData;
try { try {
var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); var chromeRegistry = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
if (chromeRegistry) if (chromeRegistry)
chromeRegistry = chromeRegistry.QueryInterface(Components.interfaces.nsIChromeRegistry); chromeRegistry = chromeRegistry.QueryInterface(Components.interfaces.nsIXULChromeRegistry);
} }
catch(e) {} catch(e) {}
@ -115,7 +115,7 @@ function applySkin()
try { try {
var reg = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService(); var reg = Components.classes["@mozilla.org/chrome/chrome-registry;1"].getService();
if (reg) if (reg)
reg = reg.QueryInterface(Components.interfaces.nsIChromeRegistry); reg = reg.QueryInterface(Components.interfaces.nsIXULChromeRegistry);
} }
catch(e) {} catch(e) {}