OLD | NEW |
1 /* | 1 /* |
2 * This file is part of Adblock Plus <https://adblockplus.org/>, | 2 * This file is part of Adblock Plus <https://adblockplus.org/>, |
3 * Copyright (C) 2006-2015 Eyeo GmbH | 3 * Copyright (C) 2006-2015 Eyeo GmbH |
4 * | 4 * |
5 * Adblock Plus is free software: you can redistribute it and/or modify | 5 * Adblock Plus is free software: you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 3 as | 6 * it under the terms of the GNU General Public License version 3 as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
8 * | 8 * |
9 * Adblock Plus is distributed in the hope that it will be useful, | 9 * Adblock Plus is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 26 matching lines...) Expand all Loading... |
37 let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); | 37 let {XPCOMUtils} = Cu.import("resource://gre/modules/XPCOMUtils.jsm", {}); |
38 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); | 38 let {Services} = Cu.import("resource://gre/modules/Services.jsm", {}); |
39 | 39 |
40 let {Utils} = require("utils"); | 40 let {Utils} = require("utils"); |
41 let {getFrames, isPrivate} = require("child/utils"); | 41 let {getFrames, isPrivate} = require("child/utils"); |
42 let {objectMouseEventHander} = require("objectTabs"); | 42 let {objectMouseEventHander} = require("objectTabs"); |
43 let {RequestNotifier} = require("child/requestNotifier"); | 43 let {RequestNotifier} = require("child/requestNotifier"); |
44 | 44 |
45 /** | 45 /** |
46 * Randomly generated class name, to be applied to collapsed nodes. | 46 * Randomly generated class name, to be applied to collapsed nodes. |
| 47 * @type string |
47 */ | 48 */ |
48 let collapsedClass = null; | 49 let collapsedClass = null; |
49 | 50 |
50 /** | 51 /** |
51 * Maps numerical content type IDs to strings. | 52 * Maps numerical content type IDs to strings. |
52 * @type Map | 53 * @type Map.<number,string> |
53 */ | 54 */ |
54 let types = new Map(); | 55 let types = new Map(); |
55 | 56 |
56 /** | 57 /** |
57 * Checks whether a request should be allowed, hides it if necessary | 58 * Checks whether a request should be allowed, hides it if necessary |
58 * @param wnd {nsIDOMWindow} | 59 * @param wnd {nsIDOMWindow} |
59 * @param node {nsIDOMElement} | 60 * @param node {nsIDOMElement} |
60 * @param contentType {String} | 61 * @param contentType {String} |
61 * @param location {String} | 62 * @param location {String} |
62 * @return {Boolean} false if the request should be blocked | 63 * @return {Boolean} false if the request should be blocked |
(...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
347 let property = (hasCols ? "cols" : "rows"); | 348 let property = (hasCols ? "cols" : "rows"); |
348 let weights = parentNode[property].split(","); | 349 let weights = parentNode[property].split(","); |
349 weights[index] = "0"; | 350 weights[index] = "0"; |
350 parentNode[property] = weights.join(","); | 351 parentNode[property] = weights.join(","); |
351 } | 352 } |
352 } | 353 } |
353 else | 354 else |
354 node.classList.add(collapsedClass); | 355 node.classList.add(collapsedClass); |
355 } | 356 } |
356 } | 357 } |
OLD | NEW |