Index: include.preload.js
===================================================================
--- a/include.preload.js
+++ b/include.preload.js
@@ -12,17 +12,16 @@
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Adblock Plus. If not, see .
*/
"use strict";
-let {splitSelector} = require("./adblockpluscore/lib/common");
let {ElemHideEmulation} =
require("./adblockpluscore/lib/content/elemHideEmulation");
// This variable is also used by our other content scripts.
let contentFiltering;
const typeMap = new Map([
["img", "IMAGE"],
@@ -391,127 +390,75 @@
document.removeEventListener("DOMContentLoaded", this.trace);
this.observer.disconnect();
clearTimeout(this.timeout);
}
};
function ContentFiltering()
{
- this.shadow = this.createShadowTree();
this.styles = new Map();
this.tracer = null;
this.inline = true;
this.inlineEmulated = true;
this.elemHideEmulation = new ElemHideEmulation(
this.addSelectors.bind(this),
this.hideElements.bind(this)
);
}
ContentFiltering.prototype = {
selectorGroupSize: 1024,
- createShadowTree()
- {
- // Use Shadow DOM if available as to not mess with with web pages that
- // rely on the order of their own