1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-07 17:44:11 +01:00

Add go=r to toggle the scrollbar

This commit is contained in:
Kris Maglione
2008-12-04 15:58:19 -05:00
parent eb11ec2b06
commit b8d32c8e3d
6 changed files with 78 additions and 38 deletions

View File

@@ -238,6 +238,7 @@ function Styles(name, store, serial)
try
{
this.registerSheet(cssUri(wrapCSS(sheet)), !force);
this.registerAgentSheet(cssUri(wrapCSS(sheet)))
}
catch (e)
{
@@ -299,6 +300,7 @@ function Styles(name, store, serial)
if (!sheet.ref.length)
{
this.unregisterSheet(cssUri(wrapCSS(sheet)));
this.unregisterAgentSheet(cssUri(wrapCSS(sheet)));
if (sheets.indexOf(sheet) > -1)
sheets.splice(sheets.indexOf(sheet), 1);
}
@@ -331,6 +333,21 @@ function Styles(name, store, serial)
sss.unregisterSheet(uri, sss.USER_SHEET);
}
// FIXME
this.registerAgentSheet = function (uri)
{
this.unregisterAgentSheet(uri);
uri = ios.newURI(uri, null, null);
sss.loadAndRegisterSheet(uri, sss.AGENT_SHEET);
}
this.unregisterAgentSheet = function (uri)
{
uri = ios.newURI(uri, null, null);
if (sss.sheetRegistered(uri, sss.AGENT_SHEET))
sss.unregisterSheet(uri, sss.AGENT_SHEET);
}
function wrapCSS(sheet)
{
let filter = sheet.sites;