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

Unified Diff: lib/elemHideEmulation.js

Issue 29783618: Issue 6665 - Split out element hiding exceptions into their own module (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Add lib/elemHideExceptions.js Created Aug. 7, 2018, 2:18 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') | lib/elemHideExceptions.js » ('j') | 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
@@ -16,17 +16,17 @@
*/
"use strict";
/**
* @fileOverview Element hiding emulation implementation.
*/
-const {ElemHide} = require("./elemHide");
+const {ElemHideExceptions} = require("./elemHideExceptions");
const {Filter} = require("./filterClasses");
let filters = new Set();
/**
* Container for element hiding emulation filters
* @class
*/
@@ -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.selector, domain))
+ !ElemHideExceptions.getException(filter.selector, domain))
{
result.push(filter);
}
}
return result;
}
};
exports.ElemHideEmulation = ElemHideEmulation;
« no previous file with comments | « lib/elemHide.js ('k') | lib/elemHideExceptions.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld