mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
+ More major cleanup in mirror.js (especially in the painting code)
+ New tabs in the stacks candy now find an empty hole rather than piling up at the top + The stacks candy now has a "site" feature (upper right) that groups the tabs by domain + TabMirror now has a feature to allow pausing paint updates. This allows you to fly things around the screen without getting stutter from paint calls. The stacks candy is currently the only candy that takes advantage of this. + The stacks candy was not visually deselecting a group that had been lassoed once the menu went away; it is now. + Added assert() to Utils
This commit is contained in:
parent
239ef9c9b9
commit
e291b9c562
@ -86,12 +86,12 @@ var Utils = {
|
||||
consoleService.logStringMessage(text);
|
||||
},
|
||||
|
||||
error: function(text) { // pass as many arguments as you want, it'll print them all
|
||||
error: function() { // pass as many arguments as you want, it'll print them all
|
||||
var text = this.expandArgumentsForLog(arguments);
|
||||
Components.utils.reportError('tabcandy error: ' + text);
|
||||
Cu.reportError('tabcandy error: ' + text);
|
||||
},
|
||||
|
||||
trace: function(text) { // pass as many arguments as you want, it'll print them all
|
||||
trace: function() { // pass as many arguments as you want, it'll print them all
|
||||
var text = this.expandArgumentsForLog(arguments);
|
||||
if(typeof(printStackTrace) != 'function')
|
||||
this.log(text + ' trace: you need to include stacktrace.js');
|
||||
@ -101,7 +101,19 @@ var Utils = {
|
||||
this.log('trace: ' + text + '\n' + calls.join('\n'));
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
assert: function(label, condition) {
|
||||
if(!condition) {
|
||||
var text = 'tabcandy assert: ' + label;
|
||||
if(typeof(printStackTrace) == 'function') {
|
||||
var calls = printStackTrace();
|
||||
text += '\n' + calls[3];
|
||||
}
|
||||
|
||||
Cu.reportError(text);
|
||||
}
|
||||
},
|
||||
|
||||
expandObject: function(obj) {
|
||||
var s = obj + ' = {';
|
||||
for(prop in obj) {
|
||||
|
Loading…
Reference in New Issue
Block a user