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

Side by Side Diff: compiled/library.js

Issue 29587914: Issue 5142 - Convert Element Hiding to C++ (Closed) Base URL: https://hg.adblockplus.org/adblockpluscore/
Patch Set: Created Oct. 25, 2017, 1:07 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
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 25 matching lines...) Expand all
36 LogError: function(str) 36 LogError: function(str)
37 { 37 {
38 console.error(new Error(readString(str)).stack); 38 console.error(new Error(readString(str)).stack);
39 }, 39 },
40 40
41 CharToLower: function(charCode) 41 CharToLower: function(charCode)
42 { 42 {
43 return String.fromCharCode(charCode).toLowerCase().charCodeAt(0); 43 return String.fromCharCode(charCode).toLowerCase().charCodeAt(0);
44 }, 44 },
45 45
46 CharToUpper: function(charCode)
hub 2017/10/25 01:19:38 and remove this too.
47 {
48 return String.fromCharCode(charCode).toUpperCase().charCodeAt(0);
49 },
50
46 JSNotifyFilterChange: function(topic, filter, subscription, position) 51 JSNotifyFilterChange: function(topic, filter, subscription, position)
47 { 52 {
48 if (subscription) 53 if (subscription)
49 subscription = exports.Subscription.fromPointer(subscription); 54 subscription = exports.Subscription.fromPointer(subscription);
50 FilterNotifier.triggerListeners(notifierTopics.get(topic), 55 FilterNotifier.triggerListeners(notifierTopics.get(topic),
51 exports.Filter.fromPointer(filter), subscription, position); 56 exports.Filter.fromPointer(filter), subscription, position);
52 }, 57 },
53 58
54 JSNotifySubscriptionChange: function(topic, subscription) 59 JSNotifySubscriptionChange: function(topic, subscription)
55 { 60 {
(...skipping 24 matching lines...) Expand all
80 { 85 {
81 delete _regexp_data[id]; 86 delete _regexp_data[id];
82 }, 87 },
83 88
84 TestRegExp__deps: ["$_regexp_data"], 89 TestRegExp__deps: ["$_regexp_data"],
85 TestRegExp: function(id, str) 90 TestRegExp: function(id, str)
86 { 91 {
87 return _regexp_data[id].test(readString(str)); 92 return _regexp_data[id].test(readString(str));
88 } 93 }
89 }); 94 });
OLDNEW

Powered by Google App Engine
This is Rietveld