зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1246677 - 10 - Removed addStyle from head.js since it was unused; r=gl
MozReview-Commit-ID: EgoEzxnILrJ --HG-- extra : rebase_source : 69e68ac96948602af8fa79edc52f5907005f9149
This commit is contained in:
Родитель
85ebc2c1f6
Коммит
f7f26ce139
|
@ -330,24 +330,6 @@ var waitForSuccess = Task.async(function*(validatorFn, desc = "untitled") {
|
|||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Create a new style tag containing the given style text and append it to the
|
||||
* document's head node
|
||||
*
|
||||
* @param {Document} doc
|
||||
* @param {String} style
|
||||
* @return {DOMNode} The newly created style node
|
||||
*/
|
||||
function addStyle(doc, style) {
|
||||
info("Adding a new style tag to the document with style content: " +
|
||||
style.substring(0, 50));
|
||||
let node = doc.createElement("style");
|
||||
node.setAttribute("type", "text/css");
|
||||
node.textContent = style;
|
||||
doc.getElementsByTagName("head")[0].appendChild(node);
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the dataURL for the font family tooltip.
|
||||
*
|
||||
|
|
Загрузка…
Ссылка в новой задаче