| 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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 275           } | 275           } | 
| 276         } | 276         } | 
| 277 | 277 | 
| 278         FilterNotifier.triggerListeners("elemhideupdate"); | 278         FilterNotifier.triggerListeners("elemhideupdate"); | 
| 279       } | 279       } | 
| 280     }.bind(this)); | 280     }.bind(this)); | 
| 281 | 281 | 
| 282     this._applying = true; | 282     this._applying = true; | 
| 283   }, | 283   }, | 
| 284 | 284 | 
| 285   _generateCSSContent: function() | 285   _generateCSSContent: function*() | 
| 286   { | 286   { | 
| 287     // Grouping selectors by domains | 287     // Grouping selectors by domains | 
| 288     let domains = Object.create(null); | 288     let domains = Object.create(null); | 
| 289     let hasFilters = false; | 289     let hasFilters = false; | 
| 290     for (let key in filterByKey) | 290     for (let key in filterByKey) | 
| 291     { | 291     { | 
| 292       let filter = filterByKey[key]; | 292       let filter = filterByKey[key]; | 
| 293       let domain = filter.selectorDomain || ""; | 293       let domain = filter.selectorDomain || ""; | 
| 294 | 294 | 
| 295       let list; | 295       let list; | 
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 383       let filter = filterByKey[key]; | 383       let filter = filterByKey[key]; | 
| 384       if (specificOnly && (!filter.domains || filter.domains[""])) | 384       if (specificOnly && (!filter.domains || filter.domains[""])) | 
| 385         continue; | 385         continue; | 
| 386 | 386 | 
| 387       if (filter.isActiveOnDomain(domain) && !this.getException(filter, domain)) | 387       if (filter.isActiveOnDomain(domain) && !this.getException(filter, domain)) | 
| 388         result.push(filter.selector); | 388         result.push(filter.selector); | 
| 389     } | 389     } | 
| 390     return result; | 390     return result; | 
| 391   } | 391   } | 
| 392 }; | 392 }; | 
| OLD | NEW | 
|---|