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

Unified Diff: chrome/content/common.js

Issue 29369510: Issue 4754 - Adjust for the new element hiding emulation filters (Closed) Base URL: https://bitbucket.org/fhd/adblockplustests
Patch Set: Created Dec. 22, 2016, 12:56 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/content/common.js
===================================================================
--- a/chrome/content/common.js
+++ b/chrome/content/common.js
@@ -30,25 +30,25 @@
if ("require" in result)
result = result.require.scopes[module];
return result;
}
let {Filter, InvalidFilter, CommentFilter, ActiveFilter, RegExpFilter,
BlockingFilter, WhitelistFilter, ElemHideBase, ElemHideFilter,
- ElemHideException, CSSPropertyFilter} = require("filterClasses");
+ ElemHideException, ElemHideEmulationFilter} = require("filterClasses");
let {Subscription, SpecialSubscription, RegularSubscription,
ExternalSubscription, DownloadableSubscription} = require("subscriptionClasses");
let {defaultMatcher, Matcher, CombinedMatcher} = require("matcher");
let {FilterListener} = require("filterListener");
let {FilterNotifier} = require("filterNotifier");
let {FilterStorage} = require("filterStorage");
let {ElemHide} = require("elemHide");
-let {CSSRules} = require("cssRules");
+let {ElemHideEmulation} = require("elemHideEmulation");
let {IO} = require("io");
let {Notification} = require("notification");
let {Prefs} = require("prefs");
let {RequestNotifier} = require("requestNotifier");
let {Synchronizer} = require("synchronizer");
let {UI} = require("ui");
let {Utils} = require("utils");
@@ -72,17 +72,17 @@
Filter.knownFilters = Object.create(null);
if (!keepListeners)
{
FilterNotifierGlobal.listeners = [];
}
defaultMatcher.clear();
ElemHide.clear();
- CSSRules.clear();
+ ElemHideEmulation.clear();
}
function restoreFilterComponents()
{
let FilterNotifierGlobal = getModuleGlobal("filterNotifier");
FilterStorage.subscriptions = this._backup.subscriptions;
FilterStorage.knownSubscriptions = this._backup.storageKnown;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld