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

Side by Side Diff: include.preload.js

Issue 29716649: Noissue - Remove unused property emulatedPatterns (Closed) Base URL: https://hg.adblockplus.org/adblockpluschrome/
Patch Set: Created March 7, 2018, 6:24 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-present eyeo GmbH 3 * Copyright (C) 2006-present eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
338 clearTimeout(this.timeout); 338 clearTimeout(this.timeout);
339 } 339 }
340 }; 340 };
341 341
342 function ElemHide() 342 function ElemHide()
343 { 343 {
344 this.shadow = this.createShadowTree(); 344 this.shadow = this.createShadowTree();
345 this.styles = new Map(); 345 this.styles = new Map();
346 this.tracer = null; 346 this.tracer = null;
347 this.inline = true; 347 this.inline = true;
348 this.emulatedPatterns = null;
349 348
350 this.elemHideEmulation = new ElemHideEmulation( 349 this.elemHideEmulation = new ElemHideEmulation(
351 this.addSelectors.bind(this), 350 this.addSelectors.bind(this),
352 this.hideElements.bind(this) 351 this.hideElements.bind(this)
353 ); 352 );
354 } 353 }
355 ElemHide.prototype = { 354 ElemHide.prototype = {
356 selectorGroupSize: 200, 355 selectorGroupSize: 200,
357 356
358 createShadowTree() 357 createShadowTree()
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 let element = event.target; 528 let element = event.target;
530 if (/^i?frame$/.test(element.localName)) 529 if (/^i?frame$/.test(element.localName))
531 checkCollapse(element); 530 checkCollapse(element);
532 }, true); 531 }, true);
533 } 532 }
534 533
535 window.checkCollapse = checkCollapse; 534 window.checkCollapse = checkCollapse;
536 window.elemhide = elemhide; 535 window.elemhide = elemhide;
537 window.typeMap = typeMap; 536 window.typeMap = typeMap;
538 window.getURLsFromElement = getURLsFromElement; 537 window.getURLsFromElement = getURLsFromElement;
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld