Bug 1246677 - 10 - Removed addStyle from head.js since it was unused; r=gl
authorPatrick Brosset <pbrosset@mozilla.com>
Fri, 12 Feb 2016 14:28:54 +0100
changeset 285628 825cd61d323da7ec9bdd516a2fc01e937ff1611b
parent 285627 fab1d65e405ada5fc969a22fb8ef9bd7e405170b
child 285629 3eb3e6986e4b34193f54618f9db800e28c10e9d3
push id17841
push userpbrosset@mozilla.com
push dateFri, 26 Feb 2016 08:29:40 +0000
treeherderfx-team@825cd61d323d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersgl
bugs1246677
milestone47.0a1
Bug 1246677 - 10 - Removed addStyle from head.js since it was unused; r=gl MozReview-Commit-ID: EgoEzxnILrJ
devtools/client/inspector/rules/test/head.js
--- a/devtools/client/inspector/rules/test/head.js
+++ b/devtools/client/inspector/rules/test/head.js
@@ -326,34 +326,16 @@ var waitForSuccess = Task.async(function
       ok(false, "Failure: " + desc);
       break;
     }
     yield new Promise(r => setTimeout(r, 200));
   }
 });
 
 /**
- * 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.
  *
  * @param {String} font
  *        The font family value.
  * @param {object} nodeFront
  *        The NodeActor that will used to retrieve the dataURL for the
  *        font family tooltip contents.
  */