Output more debug logs

This commit is contained in:
YUKI Hiroshi 2016-01-05 16:47:37 +09:00
parent a49e7c6a38
commit 04427948de

View File

@ -39,6 +39,11 @@ Components.utils.import('resource://treestyletab-modules/constants.js');
Components.utils.import('resource://treestyletab-modules/utils.js');
function mydump(aString) {
if (utils.isDebugging('fullscreenObserver'))
dump(aString);
}
function FullscreenObserver(aWindow) {
this.window = aWindow;
this.init();
@ -90,6 +95,7 @@ FullscreenObserver.prototype = {
onSizeModeChange : function FullscreenObserver_onSizeModeChange()
{
mydump('onSizeModeChange: '+d.documentElement.getAttribute('sizemode')+'\n');
this.updateToolboxPosition();
if (!this.window.gBrowser.treeStyleTab.notifyingRenderedEvent)
this.window.gBrowser.treeStyleTab.updateFloatingTabbar(TreeStyleTabConstants.kTABBAR_UPDATE_BY_WINDOW_RESIZE);