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

Unified Diff: lib/cssRules.js

Issue 29342830: Issue 4057 - Further speedup ElemHide.getSelectorsforDomain (Closed)
Patch Set: Take care to remove filters from lookups Created May 20, 2016, 10:45 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
« no previous file with comments | « no previous file | lib/elemHide.js » ('j') | lib/elemHide.js » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/cssRules.js
diff --git a/lib/cssRules.js b/lib/cssRules.js
index 9fdbbba57f72df44494bec3f98f8a9e16ab7aeb9..b3682fadd342be27ff3658ba0bb133487d597ac8 100644
--- a/lib/cssRules.js
+++ b/lib/cssRules.js
@@ -68,7 +68,8 @@ let CSSRules = exports.CSSRules =
for (let key of keys)
{
let filter = Filter.fromText(key);
- if (filter.isActiveOnDomain(domain) && !ElemHide.getException(filter, domain))
+ if (filter.isActiveOnDomain(domain) &&
+ !ElemHide.getException(filter.selector, domain))
result.push(filter);
}
return result;
« no previous file with comments | « no previous file | lib/elemHide.js » ('j') | lib/elemHide.js » ('J')

Powered by Google App Engine
This is Rietveld