OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |