Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: lib/content/elemHideEmulation.js

Issue 29738589: Issue 6437 - Do not override scheduled full processing (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created March 31, 2018, 2:16 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld