| Index: chrome/browser/resources/net_internals/util.js
|
| ===================================================================
|
| --- chrome/browser/resources/net_internals/util.js (revision 43430)
|
| +++ chrome/browser/resources/net_internals/util.js (working copy)
|
| @@ -15,6 +15,17 @@
|
| };
|
|
|
| /**
|
| + * Inherit the prototype methods from one constructor into another.
|
| + */
|
| +function inherits(childCtor, parentCtor) {
|
| + function tempCtor() {};
|
| + tempCtor.prototype = parentCtor.prototype;
|
| + childCtor.superClass_ = parentCtor.prototype;
|
| + childCtor.prototype = new tempCtor();
|
| + childCtor.prototype.constructor = childCtor;
|
| +};
|
| +
|
| +/**
|
| * Sets the width (in pixels) on a DOM node.
|
| */
|
| function setNodeWidth(node, widthPx) {
|
| @@ -39,6 +50,13 @@
|
| }
|
|
|
| /**
|
| + * Sets the visibility for a DOM node.
|
| + */
|
| +function setNodeDisplay(node, isVisible) {
|
| + node.style.display = isVisible ? '' : 'none';
|
| +}
|
| +
|
| +/**
|
| * Adds a node to |parentNode|, of type |tagName|.
|
| */
|
| function addNode(parentNode, tagName) {
|
|
|