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

Side by Side Diff: include.preload.js

Issue 29342798: Issue 235 - Update adblockpluscore dependency (Closed)
Patch Set: Created May 18, 2016, 4:12 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 | « dependencies ('k') | 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-2016 Eyeo GmbH 3 * Copyright (C) 2006-2016 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 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 document.documentElement.appendChild(script); 393 document.documentElement.appendChild(script);
394 document.documentElement.removeChild(script); 394 document.documentElement.removeChild(script);
395 } 395 }
396 396
397 function init(document) 397 function init(document)
398 { 398 {
399 var shadow = null; 399 var shadow = null;
400 var style = null; 400 var style = null;
401 var observer = null; 401 var observer = null;
402 var tracer = null; 402 var tracer = null;
403 var propertyFilters = new CSSPropertyFilters(window, addElemHideSelectors); 403
404 function getPropertyFilters(callback)
405 {
406 ext.backgroundPage.sendMessage({
407 type: "filters.get",
408 what: "cssproperties"
409 }, callback);
410 }
411 var propertyFilters = new CSSPropertyFilters(window, getPropertyFilters,
412 addElemHideSelectors);
404 413
405 // Use Shadow DOM if available to don't mess with web pages that rely on 414 // Use Shadow DOM if available to don't mess with web pages that rely on
406 // the order of their own <style> tags (#309). 415 // the order of their own <style> tags (#309).
407 // 416 //
408 // However, creating a shadow root breaks running CSS transitions. So we 417 // However, creating a shadow root breaks running CSS transitions. So we
409 // have to create the shadow root before transistions might start (#452). 418 // have to create the shadow root before transistions might start (#452).
410 // 419 //
411 // Also, using shadow DOM causes issues on some Google websites, 420 // Also, using shadow DOM causes issues on some Google websites,
412 // including Google Docs, Gmail and Blogger (#1770, #2602, #2687). 421 // including Google Docs, Gmail and Blogger (#1770, #2602, #2687).
413 if ("createShadowRoot" in document.documentElement && 422 if ("createShadowRoot" in document.documentElement &&
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
555 }, true); 564 }, true);
556 565
557 return updateStylesheet; 566 return updateStylesheet;
558 } 567 }
559 568
560 if (document instanceof HTMLDocument) 569 if (document instanceof HTMLDocument)
561 { 570 {
562 checkSitekey(); 571 checkSitekey();
563 window.updateStylesheet = init(document); 572 window.updateStylesheet = init(document);
564 } 573 }
OLDNEW
« no previous file with comments | « dependencies ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld