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

Unified Diff: include.preload.js

Issue 29714569: Issue 6422 - Prefer CSS selectors for -abp-has and -abp-contains (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created March 5, 2018, 1:28 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: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -510,16 +510,21 @@
this.inlineEmulated = !!response.inlineEmulated;
if (this.inline)
this.addSelectorsInline(response.selectors, "standard");
if (this.tracer)
this.tracer.addSelectors(response.selectors);
+ // Prefer CSS selectors for -abp-has and -abp-contains unless the
+ // background page has asked us to use inline styles.
+ this.elemHideEmulation.useInlineStyles = this.inline ||
+ this.inlineEmulated;
+
this.elemHideEmulation.apply(response.emulatedPatterns);
});
}
};
if (document instanceof HTMLDocument)
{
checkSitekey();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld