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

Unified Diff: lib/content/elemHideEmulation.js

Issue 29712602: Noissue - Fix naming inconsistency in ContainsSelector (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Only fix naming inconsistency Created March 1, 2018, 7:11 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: lib/content/elemHideEmulation.js
===================================================================
--- a/lib/content/elemHideEmulation.js
+++ b/lib/content/elemHideEmulation.js
@@ -303,23 +303,23 @@
{
this._regexp = makeRegExpParameter(textContent);
}
ContainsSelector.prototype = {
requiresHiding: true,
dependsOnCharacterData: true,
- *getSelectors(prefix, subtree, stylesheet)
+ *getSelectors(prefix, subtree, styles)
{
- for (let element of this.getElements(prefix, subtree, stylesheet))
+ for (let element of this.getElements(prefix, subtree, styles))
yield [makeSelector(element, ""), subtree];
},
- *getElements(prefix, subtree, stylesheet)
+ *getElements(prefix, subtree, styles)
{
let actualPrefix = (!prefix || incompletePrefixRegexp.test(prefix)) ?
prefix + "*" : prefix;
let elements = scopedQuerySelectorAll(subtree, actualPrefix);
if (elements)
{
for (let element of elements)
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld