| 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-present eyeo GmbH | 3 * Copyright (C) 2006-present 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 this.queueFiltering(params.stylesheets, params.mutations); | 716 this.queueFiltering(params.stylesheets, params.mutations); |
| 717 } | 717 } |
| 718 }; | 718 }; |
| 719 | 719 |
| 720 if (this._scheduledProcessing) | 720 if (this._scheduledProcessing) |
| 721 { | 721 { |
| 722 if (!stylesheets && !mutations) | 722 if (!stylesheets && !mutations) |
| 723 { | 723 { |
| 724 this._scheduledProcessing = {}; | 724 this._scheduledProcessing = {}; |
| 725 } | 725 } |
| 726 else | 726 else if (this._scheduledProcessing.stylesheets || |
| 727 this._scheduledProcessing.mutations) |
| 727 { | 728 { |
| 728 if (stylesheets) | 729 if (stylesheets) |
| 729 { | 730 { |
| 730 if (!this._scheduledProcessing.stylesheets) | 731 if (!this._scheduledProcessing.stylesheets) |
| 731 this._scheduledProcessing.stylesheets = []; | 732 this._scheduledProcessing.stylesheets = []; |
| 732 this._scheduledProcessing.stylesheets.push(...stylesheets); | 733 this._scheduledProcessing.stylesheets.push(...stylesheets); |
| 733 } | 734 } |
| 734 if (mutations) | 735 if (mutations) |
| 735 { | 736 { |
| 736 if (!this._scheduledProcessing.mutations) | 737 if (!this._scheduledProcessing.mutations) |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 808 characterData: shouldObserveCharacterData(this.patterns), | 809 characterData: shouldObserveCharacterData(this.patterns), |
| 809 subtree: true | 810 subtree: true |
| 810 } | 811 } |
| 811 ); | 812 ); |
| 812 this.document.addEventListener("load", this.onLoad.bind(this), true); | 813 this.document.addEventListener("load", this.onLoad.bind(this), true); |
| 813 } | 814 } |
| 814 } | 815 } |
| 815 }; | 816 }; |
| 816 | 817 |
| 817 exports.ElemHideEmulation = ElemHideEmulation; | 818 exports.ElemHideEmulation = ElemHideEmulation; |
| OLD | NEW |