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: Emit own elemhideupdate event Created May 17, 2018, 5:19 a.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
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, domain))
+ !ElemHideExceptions.getException(filter, domain))
{
result.push(filter);
}
}
return result;
}
};
exports.ElemHideEmulation = ElemHideEmulation;

Powered by Google App Engine
This is Rietveld