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

Side by Side Diff: chrome/content/ui/sidebar.js

Issue 29345639: Issue 3969 - Hits are not counted for custom CSS property rules (Closed)
Patch Set: Created June 8, 2016, 1:42 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 | lib/child/cssProperties.js » ('j') | lib/child/cssProperties.js » ('J')
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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
982 if (filter) 982 if (filter)
983 list.push("filter-disabled-" + filter.disabled); 983 list.push("filter-disabled-" + filter.disabled);
984 984
985 state = "state-regular"; 985 state = "state-regular";
986 if (filter && !filter.disabled) 986 if (filter && !filter.disabled)
987 { 987 {
988 if (filter instanceof WhitelistFilter) 988 if (filter instanceof WhitelistFilter)
989 state = "state-whitelisted"; 989 state = "state-whitelisted";
990 else if (filter instanceof BlockingFilter) 990 else if (filter instanceof BlockingFilter)
991 state = "state-filtered"; 991 state = "state-filtered";
992 else if (filter instanceof ElemHideFilter) 992 else if (filter instanceof ElemHideFilter || filter instanceof CSSProper tyFilter)
993 state = "state-hidden"; 993 state = "state-hidden";
994 else if (filter instanceof ElemHideException) 994 else if (filter instanceof ElemHideException)
995 state = "state-hiddenexception"; 995 state = "state-hiddenexception";
996 } 996 }
997 } 997 }
998 else { 998 else {
999 list.push("dummy-true"); 999 list.push("dummy-true");
1000 1000
1001 state = "state-filtered"; 1001 state = "state-filtered";
1002 if (this.data && Policy.isWhitelisted(contentLocation)) 1002 if (this.data && Policy.isWhitelisted(contentLocation))
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 return {tooltip: this.itemsDummyTooltip}; 1316 return {tooltip: this.itemsDummyTooltip};
1317 }, 1317 },
1318 1318
1319 invalidateItem: function(item) 1319 invalidateItem: function(item)
1320 { 1320 {
1321 let row = this.data.indexOf(item); 1321 let row = this.data.indexOf(item);
1322 if (row >= 0) 1322 if (row >= 0)
1323 this.boxObject.invalidateRow(row); 1323 this.boxObject.invalidateRow(row);
1324 } 1324 }
1325 } 1325 }
OLDNEW
« no previous file with comments | « no previous file | lib/child/cssProperties.js » ('j') | lib/child/cssProperties.js » ('J')

Powered by Google App Engine
This is Rietveld