Bug 730681 - Stop resizing the CSS viewport every time we scroll by a pixel. r=Cwiiis

This commit is contained in:
Kartikaya Gupta 2012-02-27 10:18:10 -05:00
Родитель 5f3ceab61d
Коммит 6a8731827e
1 изменённых файлов: 1 добавлений и 6 удалений

Просмотреть файл

@ -933,7 +933,6 @@ var BrowserApp = {
browser.contentDocument.mozCancelFullScreen();
} else if (aTopic == "Viewport:Change") {
this.selectedTab.viewport = JSON.parse(aData);
ViewportHandler.onResize();
} else if (aTopic == "SearchEngines:Get") {
this.getSearchEngines();
} else if (aTopic == "Passwords:Init") {
@ -3090,7 +3089,7 @@ var ViewportHandler = {
break;
case "resize":
this.onResize();
BrowserApp.selectedTab.updateViewportSize();
break;
}
},
@ -3166,10 +3165,6 @@ var ViewportHandler = {
};
},
onResize: function onResize() {
BrowserApp.selectedTab.updateViewportSize();
},
clamp: function(num, min, max) {
return Math.max(min, Math.min(max, num));
},