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

Unified Diff: lib/elemHideEmulation.js

Issue 29837555: Issue 6538, 6781 - Minimize access to ElemHideBase's selector property (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created July 24, 2018, 1:46 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « lib/elemHide.js ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/elemHideEmulation.js
===================================================================
--- a/lib/elemHideEmulation.js
+++ b/lib/elemHideEmulation.js
@@ -64,17 +64,17 @@
*/
getRulesForDomain(domain)
{
let result = [];
for (let text of filters.values())
{
let filter = Filter.fromText(text);
if (filter.isActiveOnDomain(domain) &&
- !ElemHide.getException(filter, domain))
+ !ElemHide.getException(filter.selector, domain))
{
result.push(filter);
}
}
return result;
}
};
exports.ElemHideEmulation = ElemHideEmulation;
« no previous file with comments | « lib/elemHide.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld