1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-23 18:02:27 +01:00

Fix the Styles class (I think)

This commit is contained in:
Kris Maglione
2008-10-06 22:21:01 +00:00
parent 2a26e59fac
commit ffb9684248

View File

@@ -48,6 +48,7 @@ liberator.Buffer = function () //{{{
const arrayIter = liberator.util.arrayIter; const arrayIter = liberator.util.arrayIter;
const util = liberator.util;
function Styles(name, store, serial) function Styles(name, store, serial)
{ {
/* Can't reference liberator or Components inside Styles -- /* Can't reference liberator or Components inside Styles --
@@ -56,7 +57,6 @@ liberator.Buffer = function () //{{{
*/ */
const sleep = liberator.sleep; const sleep = liberator.sleep;
const storage = liberator.storage; const storage = liberator.storage;
const xmlToDom = liberator.util.xmlToDom;
const consoleService = Components.classes["@mozilla.org/consoleservice;1"] const consoleService = Components.classes["@mozilla.org/consoleservice;1"]
.getService(Components.interfaces.nsIConsoleService); .getService(Components.interfaces.nsIConsoleService);
const ios = Components.classes["@mozilla.org/network/io-service;1"] const ios = Components.classes["@mozilla.org/network/io-service;1"]
@@ -185,7 +185,7 @@ liberator.Buffer = function () //{{{
consoleService.registerListener(listener); consoleService.registerListener(listener);
if (testDoc.documentElement.firstChild) if (testDoc.documentElement.firstChild)
testDoc.documentElement.removeChild(testDoc.documentElement.firstChild); testDoc.documentElement.removeChild(testDoc.documentElement.firstChild);
testDoc.documentElement.appendChild(xmlToDom( testDoc.documentElement.appendChild(util.xmlToDom(
<html><head><link type="text/css" rel="stylesheet" href={uri}/></head></html>, testDoc)); <html><head><link type="text/css" rel="stylesheet" href={uri}/></head></html>, testDoc));
while (true) while (true)