зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1434449 - Removed some unused code in jsm files in browser/base and browser/modules. r=florian
MozReview-Commit-ID: 9VhKxnpdzCD --HG-- extra : rebase_source : ecc1f9196a5fb22cf78c51ead89f84e154c5198f
This commit is contained in:
Родитель
eeba6c855d
Коммит
b9f306bb12
|
@ -6,8 +6,6 @@ this.EXPORTED_SYMBOLS = [
|
|||
"Panel",
|
||||
];
|
||||
|
||||
const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
|
||||
|
||||
const { classes: Cc, interfaces: Ci, utils: Cu } = Components;
|
||||
|
||||
ChromeUtils.import("resource://gre/modules/Timer.jsm");
|
||||
|
|
|
@ -126,19 +126,6 @@ function getFaviconAsImage(iconurl, privateMode, callback) {
|
|||
}
|
||||
}
|
||||
|
||||
// Snaps the given rectangle to be pixel-aligned at the given scale
|
||||
function snapRectAtScale(r, scale) {
|
||||
let x = Math.floor(r.x * scale);
|
||||
let y = Math.floor(r.y * scale);
|
||||
let width = Math.ceil((r.x + r.width) * scale) - x;
|
||||
let height = Math.ceil((r.y + r.height) * scale) - y;
|
||||
|
||||
r.x = x / scale;
|
||||
r.y = y / scale;
|
||||
r.width = width / scale;
|
||||
r.height = height / scale;
|
||||
}
|
||||
|
||||
// PreviewController
|
||||
|
||||
/*
|
||||
|
|
|
@ -299,13 +299,6 @@ this.webrtcUI = {
|
|||
}
|
||||
};
|
||||
|
||||
function getBrowserForWindow(aContentWindow) {
|
||||
return aContentWindow.QueryInterface(Ci.nsIInterfaceRequestor)
|
||||
.getInterface(Ci.nsIWebNavigation)
|
||||
.QueryInterface(Ci.nsIDocShell)
|
||||
.chromeEventHandler;
|
||||
}
|
||||
|
||||
function denyRequest(aBrowser, aRequest) {
|
||||
aBrowser.messageManager.sendAsyncMessage("webrtc:Deny",
|
||||
{callID: aRequest.callID,
|
||||
|
|
Загрузка…
Ссылка в новой задаче